Class: AgileTrello::VelocityCalculator
- Inherits:
-
Object
- Object
- AgileTrello::VelocityCalculator
- Defined in:
- lib/VelocityCalculator.rb
Instance Method Summary collapse
- #add(complexity) ⇒ Object
-
#initialize ⇒ VelocityCalculator
constructor
A new instance of VelocityCalculator.
- #total ⇒ Object
Constructor Details
#initialize ⇒ VelocityCalculator
Returns a new instance of VelocityCalculator.
3 4 5 |
# File 'lib/VelocityCalculator.rb', line 3 def initialize @total = 0 end |
Instance Method Details
#add(complexity) ⇒ Object
7 8 9 |
# File 'lib/VelocityCalculator.rb', line 7 def add(complexity) @total += complexity end |
#total ⇒ Object
11 12 13 |
# File 'lib/VelocityCalculator.rb', line 11 def total @total end |