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.
336 337 338 |
# File 'lib/taskjuggler/Attributes.rb', line 336 def initialize(property, type, container) super end |
Class Method Details
.tjpId ⇒ Object
340 341 342 |
# File 'lib/taskjuggler/Attributes.rb', line 340 def TimeIntervalListAttribute::tjpId 'intervallist' end |
Instance Method Details
#to_s(query = nil) ⇒ Object
344 345 346 347 348 |
# File 'lib/taskjuggler/Attributes.rb', line 344 def to_s(query = nil) out = [] get.each { |i| out << i.to_s } out.join(", ") end |
#to_tjp ⇒ Object
350 351 352 353 354 |
# File 'lib/taskjuggler/Attributes.rb', line 350 def to_tjp out = [] get.each { |i| out << i.to_s } @type.id + " " + out.join(', ') end |