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

17 lines
305 B
Ruby
Raw Normal View History

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 = {})
2018-03-17 18:26:18 +05:30
@user, @params = user, params
@ip_address = @params.delete(:ip_address)
end
def notification_service
NotificationService.new
end
end
end