Class: Desmoservice::SectorTerm

Inherits:
Term
  • Object
show all
Defined in:
lib/sector.rb

Instance Attribute Summary collapse

Attributes inherited from Term

#attrs, #color, #id, #localkey, #parent_id, #parent_localkey, #text

Instance Method Summary collapse

Methods inherited from Term

#[], #color?, #has_attr?, #localkey?, #text?

Constructor Details

#initialize(data) ⇒ SectorTerm

Returns a new instance of SectorTerm.



35
36
37
38
# File 'lib/sector.rb', line 35

def initialize(data)
  super(data['terme'])
  @position = data['position']
end

Instance Attribute Details

#positionObject (readonly)

Returns the value of attribute position.



33
34
35
# File 'lib/sector.rb', line 33

def position
  @position
end