A ShiftAssignment associate a specific defined shift with a time interval where the shift should be active.
Check if date is withing the assignment period.
# File lib/taskjuggler/ShiftAssignments.rb, line 50 def assigned?(date) @interval.start <= date && date < @interval.end end
Return a deep copy of self.
# File lib/taskjuggler/ShiftAssignments.rb, line 34 def copy ShiftAssignment.new(@shiftScenario, TimeInterval.new(@interval)) end
# File lib/taskjuggler/ShiftAssignments.rb, line 29 def hashKey return "#{@shiftScenario.object_id}|#{@interval.start}|#{@interval.end}" end
Returns true if the shift has a leave defined for the date.
# File lib/taskjuggler/ShiftAssignments.rb, line 60 def onLeave?(date) @shiftScenario.onLeave?(date) end
Returns true if the shift has working hours defined for the date.
# File lib/taskjuggler/ShiftAssignments.rb, line 55 def onShift?(date) @shiftScenario.onShift?(date) end
Return true if the iv interval overlaps with the assignment interval.
# File lib/taskjuggler/ShiftAssignments.rb, line 39 def overlaps?(iv) @interval.overlaps?(iv) end
Generated with the Darkfish Rdoc Generator 2.