class TaskJuggler::DurationAttribute

Public Class Methods

new(property, type, container) click to toggle source
Calls superclass method TaskJuggler::AttributeBase.new
# File lib/taskjuggler/Attributes.rb, line 247
def initialize(property, type, container)
  super
end
tjpId() click to toggle source
# File lib/taskjuggler/Attributes.rb, line 251
def DurationAttribute::tjpId
  'duration'
end

Public Instance Methods

to_s(query = nil) click to toggle source
# File lib/taskjuggler/Attributes.rb, line 259
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 255
def to_tjp
  @type.id + ' ' + get.to_s + 'h'
end