Class | TrackRecordReport::ReportElementaryCalculator |
In: |
lib/track_record_report.rb
|
Parent: | Object |
Very simple base class used to store some common properties and methods for objects which deal with worked hours.
committed | [RW] | Committed, not committed hours (floats) |
not_committed | [RW] | Committed, not committed hours (floats) |
Add the given calculator‘s committed and not committed hours to this calculator‘s hours.
# File lib/track_record_report.rb, line 40 40: def add!( calculator ) 41: @committed += calculator.committed 42: @not_committed += calculator.not_committed 43: end
Reset the object‘s hour counts.
# File lib/track_record_report.rb, line 54 54: def reset! 55: @committed = 0.0 56: @not_committed = 0.0 57: end