Class: Gitlab::CycleAnalytics::Summary::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/cycle_analytics/summary/base.rb

Direct Known Subclasses

Commit, Deploy, DeploymentFrequency, Issue

Instance Method Summary collapse

Constructor Details

#initialize(project:, from:, to: nil) ⇒ Base

Returns a new instance of Base.


7
8
9
10
11
# File 'lib/gitlab/cycle_analytics/summary/base.rb', line 7

def initialize(project:, from:, to: nil)
  @project = project
  @from = from
  @to = to
end

Instance Method Details

#titleObject

Raises:

  • (NotImplementedError)

13
14
15
# File 'lib/gitlab/cycle_analytics/summary/base.rb', line 13

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

#valueObject

Raises:

  • (NotImplementedError)

17
18
19
# File 'lib/gitlab/cycle_analytics/summary/base.rb', line 17

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