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



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

def initialize(property, type, container)
  super
end

Class Method Details

.tjpIdObject



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

def AccountAttribute::tjpId
  'account'
end

Instance Method Details

#to_s(query = nil) ⇒ Object



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

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

#to_tjpObject



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

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