Files

Class Index [+]

Quicksearch

TaskJuggler::ShiftScenario

This class handles the scenario specific features of a Shift object.

Public Class Methods

new(resource, scenarioIdx, attributes) click to toggle source
    # File lib/ShiftScenario.rb, line 20
20:     def initialize(resource, scenarioIdx, attributes)
21:       super
22:     end

Public Instance Methods

onShift?(date) click to toggle source

Returns true if the shift has working time defined for the date.

    # File lib/ShiftScenario.rb, line 25
25:     def onShift?(date)
26:       a('workinghours').onShift?(date)
27:     end
onVacation?(date) click to toggle source

Returns true if the shift has a vacation defined for the date.

    # File lib/ShiftScenario.rb, line 34
34:     def onVacation?(date)
35:       a('vacations').each do |vacationIv|
36:         if vacationIv.contains?(date)
37:           return true
38:         end
39:       end
40:       false
41:     end
replace?() click to toggle source
    # File lib/ShiftScenario.rb, line 29
29:     def replace?
30:       a('replace')
31:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.