Class: Sunspot::FacetRow
- Inherits:
-
Object
- Object
- Sunspot::FacetRow
- Defined in:
- lib/sunspot/facet_row.rb
Overview
This class encapsulates a facet row (value) for a facet.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#count ⇒ Object
readonly
Returns the value of attribute count.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, count) ⇒ FacetRow
constructor
:nodoc:.
Constructor Details
#initialize(value, count) ⇒ FacetRow
:nodoc:
8 9 10 |
# File 'lib/sunspot/facet_row.rb', line 8 def initialize(value, count) #:nodoc: @value, @count = value, count end |
Instance Attribute Details
#count ⇒ Object (readonly)
Returns the value of attribute count.
6 7 8 |
# File 'lib/sunspot/facet_row.rb', line 6 def count @count end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
6 7 8 |
# File 'lib/sunspot/facet_row.rb', line 6 def value @value end |