Class: Gitlab::CycleAnalytics::Summary::Base
- Inherits:
-
Object
- Object
- Gitlab::CycleAnalytics::Summary::Base
show all
- Defined in:
- lib/gitlab/cycle_analytics/summary/base.rb
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
#title ⇒ Object
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
|
#value ⇒ Object
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
|