Class: BurndownData::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/burndown_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeResult

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

#doneObject

Returns the value of attribute done.



24
25
26
# File 'lib/burndown_data.rb', line 24

def done
  @done
end

#openObject

Returns the value of attribute open.



24
25
26
# File 'lib/burndown_data.rb', line 24

def open
  @open
end

Instance Method Details

#totalObject



31
32
33
# File 'lib/burndown_data.rb', line 31

def total
  @open + @done
end