2018-11-18 11:00:15 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
module Keys
|
|
|
|
class BaseService
|
|
|
|
attr_accessor :user, :params
|
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
def initialize(user, params = {})
|
2021-04-29 21:17:54 +05:30
|
|
|
@user = user
|
|
|
|
@params = params
|
2018-03-17 18:26:18 +05:30
|
|
|
@ip_address = @params.delete(:ip_address)
|
|
|
|
end
|
|
|
|
|
|
|
|
def notification_service
|
|
|
|
NotificationService.new
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|