Sha256: 8f7141f89e0aaff5cf68a0da088ab876406c6d18f8ce163f04f4b120b986c0a2

Contents?: true

Size: 584 Bytes

Versions: 14

Compression:

Stored size: 584 Bytes

Contents

module Endeca
  class RefinementDimension
    include Comparable
    include Readers
    extend ClassToProc

    reader \
      "DimensionName"  => :name,
      "ExpansionLink" => :to_endeca_params

    integer_reader \
      "DimensionID"      => :id

    attr_reader :raw
    def initialize(raw={})
      @raw=raw
    end
    alias_method :attributes, :raw
    
    def inspect
      "#<#{self.class}=0x#{self.object_id.to_s(16)} id=#{id} name=#{name.inspect}>"
    end

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

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

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
primedia-endeca-0.14.0 lib/endeca/refinement_dimension.rb
primedia-endeca-1.0.0 lib/endeca/refinement_dimension.rb
primedia-endeca-1.1.0 lib/endeca/refinement_dimension.rb
primedia-endeca-1.2.0 lib/endeca/refinement_dimension.rb
primedia-endeca-1.3.0 lib/endeca/refinement_dimension.rb
primedia-endeca-1.3.1 lib/endeca/refinement_dimension.rb
primedia-endeca-1.3.2 lib/endeca/refinement_dimension.rb
primedia-endeca-1.3.3 lib/endeca/refinement_dimension.rb
primedia-endeca-1.3.4 lib/endeca/refinement_dimension.rb
primedia-endeca-1.3.5 lib/endeca/refinement_dimension.rb
primedia-endeca-1.3.6 lib/endeca/refinement_dimension.rb
primedia-endeca-1.3.7 lib/endeca/refinement_dimension.rb
endeca-1.3.8 lib/endeca/refinement_dimension.rb
endeca-1.3.7 lib/endeca/refinement_dimension.rb