Class: TaskJuggler::AccountAttribute

Inherits:
AttributeBase 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 AttributeBase

#get, #id, #inherit, isList?, #isList?, mode, #name, #nil?, #reset, #set, setMode, #to_num, #to_rti, #to_sort

Constructor Details

#initialize(property, type, container) ⇒ AccountAttribute

Returns a new instance of AccountAttribute.



26
27
28
# File 'lib/taskjuggler/Attributes.rb', line 26

def initialize(property, type, container)
  super
end

Class Method Details

.tjpIdObject



30
31
32
# File 'lib/taskjuggler/Attributes.rb', line 30

def AccountAttribute::tjpId
  'account'
end

Instance Method Details

#to_s(query = nil) ⇒ Object



34
35
36
# File 'lib/taskjuggler/Attributes.rb', line 34

def to_s(query = nil)
  (v = get) ? v.id : ''
end

#to_tjpObject



38
39
40
# File 'lib/taskjuggler/Attributes.rb', line 38

def to_tjp
  (v = get)? v.id : ''
end