Class: Solr::Query::Response::FacetValue
- Inherits:
-
Object
- Object
- Solr::Query::Response::FacetValue
- Defined in:
- lib/solr/query/response/facet_value.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
readonly
Returns the value of attribute count.
-
#subfacets ⇒ Object
readonly
Returns the value of attribute subfacets.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text:, count:, subfacets: []) ⇒ FacetValue
constructor
A new instance of FacetValue.
Constructor Details
#initialize(text:, count:, subfacets: []) ⇒ FacetValue
Returns a new instance of FacetValue.
7 8 9 10 11 12 |
# File 'lib/solr/query/response/facet_value.rb', line 7 def initialize(text:, count:, subfacets: []) @text = text @count = count @subfacets = subfacets freeze end |
Instance Attribute Details
#count ⇒ Object (readonly)
Returns the value of attribute count.
5 6 7 |
# File 'lib/solr/query/response/facet_value.rb', line 5 def count @count end |
#subfacets ⇒ Object (readonly)
Returns the value of attribute subfacets.
5 6 7 |
# File 'lib/solr/query/response/facet_value.rb', line 5 def subfacets @subfacets end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
5 6 7 |
# File 'lib/solr/query/response/facet_value.rb', line 5 def text @text end |