summaryrefslogtreecommitdiff
path: root/lib/action/base.rb
blob: fe8c8361938bee9796a81cf8e11210a9ebda4cb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require 'json'

require_relative '../gitlab_config'
require_relative '../gitlab_net'
require_relative '../gitlab_metrics'

module Action
  class Base
    def initialize
      raise NotImplementedError
    end

    def self.create_from_json(_)
      raise NotImplementedError
    end

    private

    def config
      @config ||= GitlabConfig.new
    end

    def api
      @api ||= GitlabNet.new
    end
  end
end