Welcome to mirror list, hosted at ThFree Co, Russian Federation.

base_service.rb « keys « services « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 113e22b01ce85d100e6e77c6ca881a37f06041ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

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