Class TaskJuggler::DurationAttribute
In: lib/taskjuggler/Attributes.rb
Parent: AttributeBase

Methods

new   tjpId   to_s   to_tjp  

Public Class methods

[Source]

# File lib/taskjuggler/Attributes.rb, line 248
    def initialize(property, type, container)
      super
    end

[Source]

# File lib/taskjuggler/Attributes.rb, line 252
    def DurationAttribute::tjpId
      'duration'
    end

Public Instance methods

[Source]

# File lib/taskjuggler/Attributes.rb, line 260
    def to_s(query = nil)
      query ? query.scaleDuration(query.project.slotsToDays(get)) :
              get.to_s
    end

[Source]

# File lib/taskjuggler/Attributes.rb, line 256
    def to_tjp
      @type.id + ' ' + get.to_s + 'h'
    end

[Validate]