Class: TaskJuggler::TimeIntervalListAttribute
- Inherits:
-
ListAttributeBase
- Object
- AttributeBase
- ListAttributeBase
- TaskJuggler::TimeIntervalListAttribute
- Defined in:
- lib/taskjuggler/Attributes.rb
Instance Attribute Summary
Attributes inherited from AttributeBase
#inherited, #property, #provided, #type
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(property, type, container) ⇒ TimeIntervalListAttribute
constructor
A new instance of TimeIntervalListAttribute.
- #to_s(query = nil) ⇒ Object
- #to_tjp ⇒ Object
Methods inherited from ListAttributeBase
Methods inherited from AttributeBase
#get, #id, #inherit, isList?, #isList?, mode, #name, #nil?, #reset, #set, setMode, #to_num, #to_rti, #to_sort
Constructor Details
#initialize(property, type, container) ⇒ TimeIntervalListAttribute
Returns a new instance of TimeIntervalListAttribute.
337 338 339 |
# File 'lib/taskjuggler/Attributes.rb', line 337 def initialize(property, type, container) super end |
Class Method Details
.tjpId ⇒ Object
341 342 343 |
# File 'lib/taskjuggler/Attributes.rb', line 341 def TimeIntervalListAttribute::tjpId 'intervallist' end |
Instance Method Details
#to_s(query = nil) ⇒ Object
345 346 347 348 349 |
# File 'lib/taskjuggler/Attributes.rb', line 345 def to_s(query = nil) out = [] get.each { |i| out << i.to_s } out.join(", ") end |
#to_tjp ⇒ Object
351 352 353 354 355 |
# File 'lib/taskjuggler/Attributes.rb', line 351 def to_tjp out = [] get.each { |i| out << i.to_s } @type.id + " " + out.join(', ') end |