2018-07-16 16:31:01 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-09-15 15:35:24 +00:00
|
|
|
module Keys
|
|
|
|
class BaseService
|
|
|
|
attr_accessor :user, :params
|
|
|
|
|
2018-05-16 18:26:22 +00:00
|
|
|
def initialize(user, params = {})
|
2021-04-19 21:09:27 +00:00
|
|
|
@user = user
|
|
|
|
@params = params
|
2017-10-24 06:52:47 +00:00
|
|
|
@ip_address = @params.delete(:ip_address)
|
2017-09-15 15:35:24 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def notification_service
|
|
|
|
NotificationService.new
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|