| Class | TaskJuggler::ShiftScenario |
| In: |
lib/taskjuggler/ShiftScenario.rb
|
| Parent: | ScenarioData |
This class handles the scenario specific features of a Shift object.
# File lib/taskjuggler/ShiftScenario.rb, line 21 def initialize(resource, scenarioIdx, attributes) super end
Returns true if the shift has a vacation defined for the date.
# File lib/taskjuggler/ShiftScenario.rb, line 35 def onLeave?(date) a('leaves').each do |leave| if leave.interval.contains?(date) return true end end false end