class TaskJuggler::DurationAttribute

Public Class Methods

new(property, type, container) click to toggle source
# File lib/taskjuggler/Attributes.rb, line 246
def initialize(property, type, container)
  super
end
tjpId() click to toggle source
# File lib/taskjuggler/Attributes.rb, line 250
def DurationAttribute::tjpId
  'duration'
end

Public Instance Methods

to_s(query = nil) click to toggle source
# File lib/taskjuggler/Attributes.rb, line 258
def to_s(query = nil)
  query ? query.scaleDuration(query.project.slotsToDays(get)) :
          get.to_s
end
to_tjp() click to toggle source
# File lib/taskjuggler/Attributes.rb, line 254
def to_tjp
  @type.id + ' ' + get.to_s + 'h'
end