Class: Sunspot::Query::QueryFacetRow
- Inherits:
-
Connective::Conjunction
- Object
- Scope
- 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
:nodoc:.
Methods inherited from Connective::Conjunction
Methods inherited from Connective::Abstract
#add_component, #negate, #negated?, #to_boolean_phrase, #to_params
Methods inherited from Scope
#add_conjunction, #add_disjunction, #add_negated_restriction, #add_negated_shorthand_restriction, #add_restriction, #add_shorthand_restriction, #dynamic_query, #exclude_instance
Constructor Details
#initialize(label, setup) ⇒ QueryFacetRow
:nodoc:
13 14 15 16 |
# File 'lib/sunspot/query/query_facet_row.rb', line 13 def initialize(label, setup) #:nodoc: 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 |