Class: Artisan::Reports::AverageStatPerIterationData

Inherits:
Object
  • Object
show all
Defined in:
lib/artisan/reports/average_stat_per_iteration_data.rb

Instance Method Summary collapse

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_deviationObject



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_sizeObject



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

Returns:

  • (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