Parent

Methods

Class Index [+]

Quicksearch

TaskJuggler::Booking

Attributes

resource[R]
task[R]
intervals[R]
sourceFileInfo[RW]
overtime[RW]
sloppy[RW]

Public Class Methods

new(resource, task, intervals) click to toggle source
    # File lib/taskjuggler/Booking.rb, line 21
21:     def initialize(resource, task, intervals)
22:       @resource = resource
23:       @task = task
24:       @intervals = intervals
25:       @sourceFileInfo = nil
26:       @overtime = 0
27:       @sloppy = 0
28:     end

Public Instance Methods

to_s() click to toggle source
    # File lib/taskjuggler/Booking.rb, line 30
30:     def to_s
31:       out = "#{@resource.fullId} "
32:       first = true
33:       @intervals.each do |iv|
34:         if first
35:           first = false
36:         else
37:           out += ", "
38:         end
39:         out += "#{iv.start} + #{(iv.end - iv.start) / 3600}h"
40:       end
41:     end
to_tjp() click to toggle source
    # File lib/taskjuggler/Booking.rb, line 43
43:     def to_tjp
44:       out = "#{@resource.fullId} "
45:       first = true
46:       @intervals.each do |iv|
47:         if first
48:           first = false
49:         else
50:           out += ",\n"
51:         end
52:         out += "#{iv.start} + #{(iv.end - iv.start) / 3600}h"
53:       end
54:       out += ' { overtime 2 }'
55:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.