Class: Sunspot::Query::Restriction::EqualTo
- Defined in:
- lib/sunspot/query/restriction.rb
Overview
Results must have field with value equal to given value. If the value is nil, results must have no value for the given field.
Constant Summary
Constants inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#initialize, #negate, #to_boolean_phrase, #to_negated_boolean_phrase, #to_params
Methods included from Filter
Constructor Details
This class inherits a constructor from Sunspot::Query::Restriction::Base
Instance Method Details
#negated? ⇒ Boolean
200 201 202 203 204 205 206 |
# File 'lib/sunspot/query/restriction.rb', line 200 def negated? if @value.nil? !super else super end end |