Sha256: 3a1c98d6aead2a04e4fba58c7023d8f236adb341dce160f8e780882a73d9b198
Contents?: true
Size: 638 Bytes
Versions: 62
Compression:
Stored size: 638 Bytes
Contents
module Sunspot module Search class FacetRow attr_reader :value, :count attr_writer :instance #:nodoc: def initialize(value, count, facet) #:nodoc: @value, @count, @facet = value, count, facet end # # Return the instance referenced by this facet row. Only valid for field # facets whose fields are defined with the :references key. # def instance if !defined?(@instance) @facet.populate_instances end @instance end def inspect "<Sunspot::Search::FacetRow:#{value.inspect} (#{count})>" end end end end
Version data entries
62 entries across 62 versions & 11 rubygems