gitlab-org--gitlab-foss/app/services/keys/base_service.rb
Rémy Coutable 6d81905faf
Introduce a new Keys::DestroyService service
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-05-16 20:26:22 +02:00

14 lines
274 B
Ruby

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