Class: Endeca::RefinementDimension

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ClassToProc

to_proc

Methods included from Readers

included

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

#rawObject (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

#inspectObject



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