debian-mirror-gitlab/app/services/keys/base_service.rb

15 lines
269 B
Ruby
Raw Normal View History

2018-03-17 18:26:18 +05:30
module Keys
class BaseService
attr_accessor :user, :params
def initialize(user, params)
@user, @params = user, params
@ip_address = @params.delete(:ip_address)
end
def notification_service
NotificationService.new
end
end
end