Class: Artisan::Iterations::IterationPointCalculator
- Inherits:
-
Object
- Object
- Artisan::Iterations::IterationPointCalculator
- Defined in:
- lib/artisan/iterations/iteration_point_calculator.rb
Instance Method Summary collapse
- #completed_points ⇒ Object
-
#initialize(iteration) ⇒ IterationPointCalculator
constructor
A new instance of IterationPointCalculator.
- #total_points ⇒ Object
Constructor Details
#initialize(iteration) ⇒ IterationPointCalculator
Returns a new instance of IterationPointCalculator.
7 8 9 |
# File 'lib/artisan/iterations/iteration_point_calculator.rb', line 7 def initialize(iteration) @iteration = iteration end |
Instance Method Details
#completed_points ⇒ Object
15 16 17 |
# File 'lib/artisan/iterations/iteration_point_calculator.rb', line 15 def completed_points return total_of Repository.story.completed(@iteration) end |
#total_points ⇒ Object
11 12 13 |
# File 'lib/artisan/iterations/iteration_point_calculator.rb', line 11 def total_points return total_of Repository.story.all(@iteration) end |