Class: TaskJuggler::TimeIntervalListAttribute

Inherits:
ListAttributeBase show all
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

Methods inherited from ListAttributeBase

#isList?, isList?

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

.tjpIdObject



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_tjpObject



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