summaryrefslogtreecommitdiff
path: root/lib/gitlab/cycle_analytics/summary/base.rb
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