Class: RSolr::Ext::Response::Facets::FacetField
- Inherits:
-
Object
- Object
- RSolr::Ext::Response::Facets::FacetField
- Defined in:
- lib/rsolr-ext/response/facets.rb
Overview
represents a facet; which is a field and its values
Instance Attribute Summary collapse
-
#items ⇒ Object
readonly
Returns the value of attribute items.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, items) ⇒ FacetField
constructor
A new instance of FacetField.
Constructor Details
#initialize(name, items) ⇒ FacetField
Returns a new instance of FacetField.
14 15 16 |
# File 'lib/rsolr-ext/response/facets.rb', line 14 def initialize name, items @name, @items = name, items end |
Instance Attribute Details
#items ⇒ Object (readonly)
Returns the value of attribute items.
13 14 15 |
# File 'lib/rsolr-ext/response/facets.rb', line 13 def items @items end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
13 14 15 |
# File 'lib/rsolr-ext/response/facets.rb', line 13 def name @name end |