Class: TaskJuggler::ChargeSetListAttribute
- Inherits:
-
ListAttributeBase
- Object
- AttributeBase
- ListAttributeBase
- TaskJuggler::ChargeSetListAttribute
- Defined in:
- lib/taskjuggler/Attributes.rb
Overview
A ChargeSetListAttribute encapsulates a list of ChargeSet objects as PropertyTreeNode attributes.
Instance Attribute Summary
Attributes inherited from AttributeBase
#inherited, #property, #provided, #type
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(property, type, container) ⇒ ChargeSetListAttribute
constructor
A new instance of ChargeSetListAttribute.
- #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) ⇒ ChargeSetListAttribute
Returns a new instance of ChargeSetListAttribute.
164 165 166 |
# File 'lib/taskjuggler/Attributes.rb', line 164 def initialize(property, type, container) super end |
Class Method Details
.tjpId ⇒ Object
168 169 170 |
# File 'lib/taskjuggler/Attributes.rb', line 168 def ChargeSetListAttribute::tjpId 'chargeset' end |
Instance Method Details
#to_s(query = nil) ⇒ Object
172 173 174 175 176 |
# File 'lib/taskjuggler/Attributes.rb', line 172 def to_s(query = nil) out = [] get.each { |i| out << i.to_s } out.join(", ") end |
#to_tjp ⇒ Object
178 179 180 181 182 |
# File 'lib/taskjuggler/Attributes.rb', line 178 def to_tjp out = [] get.each { |i| out << i.to_s } @type.id + " " + out.join(', ') end |