Class: RSolrExt::Response::Select::Facets::Facet
- Inherits:
-
Object
- Object
- RSolrExt::Response::Select::Facets::Facet
- Defined in:
- lib/rsolr_ext/response/select.rb
Overview
represents a facet; which is a field and its values
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#values ⇒ Object
Returns the value of attribute values.
Instance Method Summary collapse
-
#initialize(field) ⇒ Facet
constructor
A new instance of Facet.
Constructor Details
#initialize(field) ⇒ Facet
Returns a new instance of Facet.
56 57 58 59 |
# File 'lib/rsolr_ext/response/select.rb', line 56 def initialize(field) @field=field @values=[] end |
Instance Attribute Details
#field ⇒ Object (readonly)
Returns the value of attribute field.
54 55 56 |
# File 'lib/rsolr_ext/response/select.rb', line 54 def field @field end |
#values ⇒ Object
Returns the value of attribute values.
55 56 57 |
# File 'lib/rsolr_ext/response/select.rb', line 55 def values @values end |