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)
-
- (Object) hits
readonly
Returns the value of attribute hits.
-
- (Object) value
readonly
Returns the value of attribute value.
Instance Method Summary (collapse)
-
- (FacetItem) initialize(value, hits)
constructor
A new instance of FacetItem.
Constructor Details
- (FacetItem) initialize(value, hits)
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
- (Object) hits (readonly)
Returns the value of attribute hits
5 6 7 |
# File 'lib/rsolr-ext/response/facets.rb', line 5 def hits @hits end |
- (Object) value (readonly)
Returns the value of attribute value
5 6 7 |
# File 'lib/rsolr-ext/response/facets.rb', line 5 def value @value end |