Class: RSolr::Ext::Response::Facets::FacetItem
- Inherits:
-
Object
- Object
- RSolr::Ext::Response::Facets::FacetItem
- Defined in:
- lib/rsolr-ext/response/facets.rb
Overview
represents a facet value; which is a field value and its hit count
Instance Attribute Summary collapse
-
#hits ⇒ Object
readonly
Returns the value of attribute hits.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, hits) ⇒ FacetItem
constructor
A new instance of FacetItem.
Constructor Details
#initialize(value, hits) ⇒ FacetItem
Returns a new instance of FacetItem.
6 7 8 |
# File 'lib/rsolr-ext/response/facets.rb', line 6 def initialize value, hits @value, @hits = value, hits end |
Instance Attribute Details
#hits ⇒ Object (readonly)
Returns the value of attribute hits.
5 6 7 |
# File 'lib/rsolr-ext/response/facets.rb', line 5 def hits @hits end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
5 6 7 |
# File 'lib/rsolr-ext/response/facets.rb', line 5 def value @value end |