Class: Endeca::Dimension
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 ClassToProc
Methods included from Readers
Constructor Details
#initialize(raw = {}) ⇒ Dimension
Returns a new instance of Dimension.
17 18 19 |
# File 'lib/endeca/dimension.rb', line 17 def initialize(raw={}) @raw=raw end |
Instance Attribute Details
#raw ⇒ Object (readonly) Also known as: attributes
Returns the value of attribute raw.
16 17 18 |
# File 'lib/endeca/dimension.rb', line 16 def raw @raw end |
Instance Method Details
#<=>(other) ⇒ Object
34 35 36 |
# File 'lib/endeca/dimension.rb', line 34 def <=>(other) name <=> other.name end |
#==(other) ⇒ Object
30 31 32 |
# File 'lib/endeca/dimension.rb', line 30 def ==(other) id == other.id end |
#inspect ⇒ Object
26 27 28 |
# File 'lib/endeca/dimension.rb', line 26 def inspect "#<#{self.class}=0x#{self.object_id.to_s(16)} id=#{id} name=#{name.inspect}>" end |
#to_endeca_params ⇒ Object
22 23 24 |
# File 'lib/endeca/dimension.rb', line 22 def to_endeca_params selection_link || removal_link end |