class TaskJuggler::DurationAttribute
Public Class Methods
Source
# File lib/taskjuggler/Attributes.rb, line 248 def initialize(property, type, container) super end
Calls superclass method
TaskJuggler::AttributeBase::new
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