Class TrackRecordReport::ReportUserRowTotal
In: lib/track_record_report.rb
Parent: ReportElementaryCalculator

Analogous to ReportUserData, but records the a user‘s total worked hours for the whole row. ReportUserRowTotal objects should be added to a UserRow in the order the users appear in the Report‘s @users array so that indices match between user data arrays in cells and the row user total arrays.

Methods

Public Instance methods

Pass a ReportRow object containing user data to count and the index in the cell user data arrays of the user in which you have an interest.

[Source]

      # File lib/track_record_report.rb, line 1188
1188:     def calculate!( row, user_index )
1189:       reset!()
1190: 
1191:       row.cells.each do | cell |
1192:         user_data = cell.user_data[ user_index ]
1193:         add!( user_data )
1194:       end
1195:     end

[Validate]