Class: TaskJuggler::TSResourceRecord
- Defined in:
- lib/taskjuggler/reports/TimeSheetReport.rb
Overview
Utility class for the intermediate TimeSheetReport format.
Instance Attribute Summary collapse
-
#resource ⇒ Object
readonly
Returns the value of attribute resource.
-
#tasks ⇒ Object
readonly
Returns the value of attribute tasks.
-
#vacationHours ⇒ Object
Returns the value of attribute vacationHours.
-
#vacationPercent ⇒ Object
Returns the value of attribute vacationPercent.
Instance Method Summary collapse
-
#initialize(resource) ⇒ TSResourceRecord
constructor
A new instance of TSResourceRecord.
Constructor Details
#initialize(resource) ⇒ TSResourceRecord
Returns a new instance of TSResourceRecord.
24 25 26 27 28 29 |
# File 'lib/taskjuggler/reports/TimeSheetReport.rb', line 24 def initialize(resource) @resource = resource @vacationHours = 0.0 @vacationPercent = 0.0 @tasks = [] end |
Instance Attribute Details
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
21 22 23 |
# File 'lib/taskjuggler/reports/TimeSheetReport.rb', line 21 def resource @resource end |
#tasks ⇒ Object (readonly)
Returns the value of attribute tasks.
21 22 23 |
# File 'lib/taskjuggler/reports/TimeSheetReport.rb', line 21 def tasks @tasks end |
#vacationHours ⇒ Object
Returns the value of attribute vacationHours.
22 23 24 |
# File 'lib/taskjuggler/reports/TimeSheetReport.rb', line 22 def vacationHours @vacationHours end |
#vacationPercent ⇒ Object
Returns the value of attribute vacationPercent.
22 23 24 |
# File 'lib/taskjuggler/reports/TimeSheetReport.rb', line 22 def vacationPercent @vacationPercent end |