class TaskJuggler::ChargeSetListAttribute
A ChargeSetListAttribute encapsulates a list of ChargeSet objects as PropertyTreeNode attributes.
Public Class Methods
new(property, type, container)
click to toggle source
Calls superclass method
TaskJuggler::ListAttributeBase.new
# File lib/taskjuggler/Attributes.rb, line 162 def initialize(property, type, container) super end
tjpId()
click to toggle source
# File lib/taskjuggler/Attributes.rb, line 166 def ChargeSetListAttribute::tjpId 'chargeset' end
Public Instance Methods
to_s(query = nil)
click to toggle source
# File lib/taskjuggler/Attributes.rb, line 170 def to_s(query = nil) out = [] get.each { |i| out << i.to_s } out.join(", ") end
to_tjp()
click to toggle source
# File lib/taskjuggler/Attributes.rb, line 176 def to_tjp out = [] get.each { |i| out << i.to_s } @type.id + " " + out.join(', ') end