Class: BurndownData::Result
- Inherits:
-
Object
- Object
- BurndownData::Result
- Defined in:
- lib/burndown_data.rb
Instance Attribute Summary collapse
-
#done ⇒ Object
Returns the value of attribute done.
-
#open ⇒ Object
Returns the value of attribute open.
Instance Method Summary collapse
-
#initialize ⇒ Result
constructor
A new instance of Result.
- #total ⇒ Object
Constructor Details
#initialize ⇒ Result
Returns a new instance of Result.
26 27 28 29 |
# File 'lib/burndown_data.rb', line 26 def initialize @open = 0 @done = 0 end |
Instance Attribute Details
#done ⇒ Object
Returns the value of attribute done.
24 25 26 |
# File 'lib/burndown_data.rb', line 24 def done @done end |
#open ⇒ Object
Returns the value of attribute open.
24 25 26 |
# File 'lib/burndown_data.rb', line 24 def open @open end |
Instance Method Details
#total ⇒ Object
31 32 33 |
# File 'lib/burndown_data.rb', line 31 def total @open + @done end |