Class: Sunspot::Query::QueryFacetRow
- Inherits:
-
Connective::Conjunction
- Object
- Connective::Abstract
- Connective::Conjunction
- Sunspot::Query::QueryFacetRow
- Defined in:
- lib/sunspot/query/query_facet_row.rb
Overview
QueryFacetRow objects encapsulate restrictions for a particular QueryFacet. They also contain a label attribute, which is used as the value for the search result’s corresponding facet row object.
See Query::Scope for the API provided.
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
:nodoc:.
Instance Method Summary collapse
-
#initialize(label, setup) ⇒ QueryFacetRow
constructor
A new instance of QueryFacetRow.
Methods inherited from Connective::Conjunction
Methods inherited from Connective::Abstract
#add_component, #add_conjunction, #add_disjunction, #add_negated_restriction, #add_negated_shorthand_restriction, #add_restriction, #add_shorthand_restriction, #negate, #negated?, #to_boolean_phrase
Constructor Details
#initialize(label, setup) ⇒ QueryFacetRow
Returns a new instance of QueryFacetRow.
13 14 15 16 |
# File 'lib/sunspot/query/query_facet_row.rb', line 13 def initialize(label, setup) super(setup) @label = label end |
Instance Attribute Details
#label ⇒ Object (readonly)
:nodoc:
11 12 13 |
# File 'lib/sunspot/query/query_facet_row.rb', line 11 def label @label end |