Store information about a specific task over a full report date range. The parent report contains information about that range.
Array of ReportCell objects
Task for which this row exists
Array of ReportUserRowTotal objects
# File lib/track_record_report.rb, line 993 def initialize( task ) super() @cells = [] @user_row_totals = [] @task = task end
Add the given ReportCell object to the “@cells” array and increment the internal running total for the row.
# File lib/track_record_report.rb, line 1003 def add_cell( cell ) @cells.push( cell ) add!( cell ) end
Call to add ReportUserRowTotal objects to the row’s @#user_row_totals array.
# File lib/track_record_report.rb, line 1018 def add_user_row_total( user_row_total ) @user_row_totals.push( user_row_total ) end
Delete a ReportCell object from the “@cells” array at the given index.
# File lib/track_record_report.rb, line 1010 def delete_cell( index ) subtract!( @cells[ index ] ) @cells.delete_at( index ) end
Call to delete a row total from a specific index.
# File lib/track_record_report.rb, line 1024 def delete_user_row_total( index ) @user_row_totals.delete_at( index ) end