Class: Artisan::Reports::AverageStatPerIterationData
- Inherits:
-
Object
- Object
- Artisan::Reports::AverageStatPerIterationData
- Defined in:
- lib/artisan/reports/average_stat_per_iteration_data.rb
Instance Method Summary collapse
- #average_of(stat) ⇒ Object
- #average_standard_deviation ⇒ Object
- #average_story_size ⇒ Object
- #current_iteration?(iteration) ⇒ Boolean
-
#initialize(project) ⇒ AverageStatPerIterationData
constructor
A new instance of AverageStatPerIterationData.
Constructor Details
#initialize(project) ⇒ AverageStatPerIterationData
Returns a new instance of AverageStatPerIterationData.
6 7 8 |
# File 'lib/artisan/reports/average_stat_per_iteration_data.rb', line 6 def initialize(project) @project = project end |
Instance Method Details
#average_of(stat) ⇒ Object
10 11 12 |
# File 'lib/artisan/reports/average_stat_per_iteration_data.rb', line 10 def average_of(stat) average(stat) end |
#average_standard_deviation ⇒ Object
14 15 16 |
# File 'lib/artisan/reports/average_stat_per_iteration_data.rb', line 14 def average_standard_deviation average(:standard_deviation) end |
#average_story_size ⇒ Object
18 19 20 |
# File 'lib/artisan/reports/average_stat_per_iteration_data.rb', line 18 def average_story_size average(:estimate) end |
#current_iteration?(iteration) ⇒ Boolean
22 23 24 |
# File 'lib/artisan/reports/average_stat_per_iteration_data.rb', line 22 def current_iteration?(iteration) Iterations::Iterations.new(@project).current == iteration end |