2017-09-15 15:35:24 +00:00
|
|
|
module Keys
|
|
|
|
class BaseService
|
|
|
|
attr_accessor :user, :params
|
|
|
|
|
|
|
|
def initialize(user, params)
|
|
|
|
@user, @params = user, 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
|