Class: Sunspot::FacetRow

Inherits:
Object
  • Object
show all
Defined in:
lib/sunspot/facet_row.rb

Overview

This class encapsulates a facet row (value) for a facet.

Direct Known Subclasses

InstantiatedFacetRow

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, count) ⇒ FacetRow

:nodoc:



6
7
8
# File 'lib/sunspot/facet_row.rb', line 6

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

Instance Attribute Details

#countObject (readonly)

Returns the value of attribute count.



4
5
6
# File 'lib/sunspot/facet_row.rb', line 4

def count
  @count
end

#valueObject (readonly)

Returns the value of attribute value.



4
5
6
# File 'lib/sunspot/facet_row.rb', line 4

def value
  @value
end