Class: Artisan::Iterations::IterationPointCalculator

Inherits:
Object
  • Object
show all
Defined in:
lib/artisan/iterations/iteration_point_calculator.rb

Instance Method Summary collapse

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_pointsObject



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_pointsObject



11
12
13
# File 'lib/artisan/iterations/iteration_point_calculator.rb', line 11

def total_points
  return total_of Repository.story.all(@iteration)
end