Class: Endeca::Dimension

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Readers

included

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

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

#inspectObject



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_paramsObject



21
22
23
# File 'lib/endeca/dimension.rb', line 21

def to_endeca_params
  selection_link || removal_link
end