Sha256: fe4d02135be264dd171db6ef4a8503a605856434aaea2b4bcd7bcdd0672c12b5

Contents?: true

Size: 561 Bytes

Versions: 7

Compression:

Stored size: 561 Bytes

Contents

module Endeca
  class RefinementDimension
    include Comparable
    include Readers

    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

7 entries across 7 versions & 1 rubygems

Version Path
endeca-1.5.3 lib/endeca/refinement_dimension.rb
endeca-1.5.2 lib/endeca/refinement_dimension.rb
endeca-1.5.1 lib/endeca/refinement_dimension.rb
endeca-1.5.0 lib/endeca/refinement_dimension.rb
endeca-1.4.2 lib/endeca/refinement_dimension.rb
endeca-1.4.1 lib/endeca/refinement_dimension.rb
endeca-1.4.0 lib/endeca/refinement_dimension.rb