Sha256: 7123a7942bbd0b4f6a4d223cdf249a3820559ed026a2f68d54beaa994d165140

Contents?: true

Size: 482 Bytes

Versions: 11

Compression:

Stored size: 482 Bytes

Contents

module Sunspot
  # 
  # Objects of this class encapsulate a single query facet row returned for a
  # query facet.
  #
  class QueryFacetRow
    #
    # This is the "label" passed into the query facet row when it is defined in
    # the search.
    #
    attr_reader :value
    # 
    # Number of documents in the result set that match this facet's scope.
    #
    attr_reader :count

    def initialize(value, count) #:nodoc:
      @value, @count = value, count
    end
  end
end

Version data entries

11 entries across 11 versions & 4 rubygems

Version Path
Chrononaut-sunspot-client-0.9.4 lib/sunspot/query_facet_row.rb
UnderpantsGnome-sunspot-0.9.1.1 lib/sunspot/query_facet_row.rb
kuahyeow-sunspot-0.9.7 lib/sunspot/query_facet_row.rb
kuahyeow-sunspot-0.9.8 lib/sunspot/query_facet_row.rb
outoftime-sunspot-0.9.0 lib/sunspot/query_facet_row.rb
outoftime-sunspot-0.9.1 lib/sunspot/query_facet_row.rb
outoftime-sunspot-0.9.2 lib/sunspot/query_facet_row.rb
outoftime-sunspot-0.9.3 lib/sunspot/query_facet_row.rb
outoftime-sunspot-0.9.4 lib/sunspot/query_facet_row.rb
outoftime-sunspot-0.9.5 lib/sunspot/query_facet_row.rb
outoftime-sunspot-0.9.6 lib/sunspot/query_facet_row.rb