BigW Consortium Gitlab

base.rb 389 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
module Gitlab
  module CycleAnalytics
    module Summary
      class Base
        def initialize(project:, from:)
          @project = project
          @from = from
        end

        def title
James Lopez committed
11
          self.class.name.demodulize
12 13 14 15 16 17 18 19 20
        end

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