Class: Desmoservice::SectorTerm
Instance Attribute Summary collapse
-
#position ⇒ Object
readonly
Returns the value of attribute position.
Attributes inherited from Term
#attrs, #color, #id, #localkey, #parent_id, #parent_localkey, #text
Instance Method Summary collapse
-
#initialize(data) ⇒ SectorTerm
constructor
A new instance of SectorTerm.
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
#position ⇒ Object (readonly)
Returns the value of attribute position.
33 34 35 |
# File 'lib/sector.rb', line 33 def position @position end |