Class: TaskJuggler::DurationAttribute
Instance Attribute Summary
#inherited, #property, #provided, #type
Class Method Summary
collapse
Instance Method Summary
collapse
#get, #id, #inherit, isList?, #isList?, mode, #name, #nil?, #reset, #set, setMode, #to_num, #to_rti, #to_sort
Constructor Details
#initialize(property, type, container) ⇒ DurationAttribute
249
250
251
|
# File 'lib/taskjuggler/Attributes.rb', line 249
def initialize(property, type, container)
super
end
|
Class Method Details
253
254
255
|
# File 'lib/taskjuggler/Attributes.rb', line 253
def DurationAttribute::tjpId
'duration'
end
|
Instance Method Details
#to_s(query = nil) ⇒ Object
261
262
263
264
|
# File 'lib/taskjuggler/Attributes.rb', line 261
def to_s(query = nil)
query ? query.scaleDuration(query.project.slotsToDays(get)) :
get.to_s
end
|
257
258
259
|
# File 'lib/taskjuggler/Attributes.rb', line 257
def to_tjp
@type.id + ' ' + get.to_s + 'h'
end
|