Class: Endeca::Dimension
- Includes:
- Comparable, Readers
- Defined in:
- lib/endeca/dimension.rb
Instance Attribute Summary collapse
-
#raw ⇒ Object
(also: #attributes)
readonly
Returns the value of attribute raw.
Instance Method Summary collapse
- #<=>(other) ⇒ Object
- #==(other) ⇒ Object
-
#initialize(raw = {}) ⇒ Dimension
constructor
A new instance of Dimension.
- #inspect ⇒ Object
- #to_endeca_params ⇒ Object
Methods included from Readers
Constructor Details
#initialize(raw = {}) ⇒ Dimension
Returns a new instance of Dimension.
16 17 18 |
# File 'lib/endeca/dimension.rb', line 16 def initialize(raw={}) @raw=raw end |
Instance Attribute Details
#raw ⇒ Object (readonly) Also known as: attributes
Returns the value of attribute raw.
15 16 17 |
# File 'lib/endeca/dimension.rb', line 15 def raw @raw end |
Instance Method Details
#<=>(other) ⇒ Object
33 34 35 |
# File 'lib/endeca/dimension.rb', line 33 def <=>(other) name <=> other.name end |
#==(other) ⇒ Object
29 30 31 |
# File 'lib/endeca/dimension.rb', line 29 def ==(other) id == other.id end |
#inspect ⇒ Object
25 26 27 |
# File 'lib/endeca/dimension.rb', line 25 def inspect "#<#{self.class}=0x#{self.object_id.to_s(16)} id=#{id} name=#{name.inspect}>" end |
#to_endeca_params ⇒ Object
21 22 23 |
# File 'lib/endeca/dimension.rb', line 21 def to_endeca_params selection_link || removal_link end |