Class: Endeca::RefinementDimension

Inherits:
Object
  • Object
show all
Includes:
Comparable, Readers
Defined in:
lib/endeca/refinement_dimension.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Readers

included

Constructor Details

#initialize(raw = {}) ⇒ RefinementDimension

Returns a new instance of RefinementDimension.



14
15
16
# File 'lib/endeca/refinement_dimension.rb', line 14

def initialize(raw={})
  @raw=raw
end

Instance Attribute Details

#rawObject (readonly) Also known as: attributes

Returns the value of attribute raw.



13
14
15
# File 'lib/endeca/refinement_dimension.rb', line 13

def raw
  @raw
end

Instance Method Details

#<=>(other) ⇒ Object



27
28
29
# File 'lib/endeca/refinement_dimension.rb', line 27

def <=>(other)
  name <=> other.name
end

#==(other) ⇒ Object



23
24
25
# File 'lib/endeca/refinement_dimension.rb', line 23

def ==(other)
  id == other.id
end

#inspectObject



19
20
21
# File 'lib/endeca/refinement_dimension.rb', line 19

def inspect
  "#<#{self.class}=0x#{self.object_id.to_s(16)} id=#{id} name=#{name.inspect}>"
end