Class: Endeca::RefinementDimension
- Extended by:
- ClassToProc
- Includes:
- Comparable, Readers
- Defined in:
- lib/endeca/refinement_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 = {}) ⇒ RefinementDimension
constructor
A new instance of RefinementDimension.
- #inspect ⇒ Object
Methods included from ClassToProc
Methods included from Readers
Constructor Details
#initialize(raw = {}) ⇒ RefinementDimension
Returns a new instance of RefinementDimension.
15 16 17 |
# File 'lib/endeca/refinement_dimension.rb', line 15 def initialize(raw={}) @raw=raw end |
Instance Attribute Details
#raw ⇒ Object (readonly) Also known as: attributes
Returns the value of attribute raw.
14 15 16 |
# File 'lib/endeca/refinement_dimension.rb', line 14 def raw @raw end |
Instance Method Details
#<=>(other) ⇒ Object
28 29 30 |
# File 'lib/endeca/refinement_dimension.rb', line 28 def <=>(other) name <=> other.name end |
#==(other) ⇒ Object
24 25 26 |
# File 'lib/endeca/refinement_dimension.rb', line 24 def ==(other) id == other.id end |
#inspect ⇒ Object
20 21 22 |
# File 'lib/endeca/refinement_dimension.rb', line 20 def inspect "#<#{self.class}=0x#{self.object_id.to_s(16)} id=#{id} name=#{name.inspect}>" end |