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:
6 7 8 |
# File 'lib/sunspot/facet_row.rb', line 6 def initialize(value, count) #:nodoc: @value, @count = value, count end |
Instance Attribute Details
#count ⇒ Object (readonly)
Returns the value of attribute count.
4 5 6 |
# File 'lib/sunspot/facet_row.rb', line 4 def count @count end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
4 5 6 |
# File 'lib/sunspot/facet_row.rb', line 4 def value @value end |