Class: RSolrExt::Response::Select::Facets::FacetValue
- Inherits:
-
Object
- Object
- RSolrExt::Response::Select::Facets::FacetValue
- Defined in:
- lib/rsolr_ext/response/select.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) ⇒ FacetValue
constructor
A new instance of FacetValue.
Constructor Details
#initialize(value, hits) ⇒ FacetValue
Returns a new instance of FacetValue.
47 48 49 |
# File 'lib/rsolr_ext/response/select.rb', line 47 def initialize(value,hits) @value,@hits=value,hits end |
Instance Attribute Details
#hits ⇒ Object (readonly)
Returns the value of attribute hits.
46 47 48 |
# File 'lib/rsolr_ext/response/select.rb', line 46 def hits @hits end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
46 47 48 |
# File 'lib/rsolr_ext/response/select.rb', line 46 def value @value end |