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 248
def initialize(property, type, container)
  super
end
tjpId() click to toggle source
# File lib/taskjuggler/Attributes.rb, line 252
def DurationAttribute::tjpId
  'duration'
end

Public Instance Methods

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