class TaskJuggler::ManagerStatusRecord

Attributes

resource[R]
responsibilities[R]

Public Class Methods

new(resource) click to toggle source
# File lib/taskjuggler/reports/StatusSheetReport.rb, line 22
def initialize(resource)
  # The Resource record of the manager
  @resource = resource
  # A list of Task objects with their JournalEntry records. Stored as
  # Array of ManagerResponsibilities objects.
  @responsibilities = []
end

Public Instance Methods

sort!(taskList) click to toggle source
# File lib/taskjuggler/reports/StatusSheetReport.rb, line 30
def sort!(taskList)
  @responsibilities.sort! do |r1, r2|
    taskList.itemIndex(r1.task) <=> taskList.itemIndex(r2.task)
  end
  @responsibilities.each { |r| r.sort!(taskList) }
end