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

base.rb « summary « cycle_analytics « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 43fa3795e5ca98d7669202aaaee9c11829ad5399 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module Gitlab
  module CycleAnalytics
    module Summary
      class Base
        def initialize(project:, from:)
          @project = project
          @from = from
        end

        def title
          self.class.name.demodulize
        end

        def value
          raise NotImplementedError.new("Expected #{self.name} to implement value")
        end
      end
    end
  end
end