Class: Sunspot::Query::Restriction::InRadius
- Defined in:
- lib/sunspot/query/restriction.rb
Constant Summary
Constants inherited from Base
Instance Method Summary collapse
-
#initialize(negated, field, lat, lon, radius) ⇒ InRadius
constructor
A new instance of InRadius.
Methods inherited from Base
#negate, #negated?, #to_boolean_phrase, #to_negated_boolean_phrase, #to_params
Methods included from Filter
Constructor Details
#initialize(negated, field, lat, lon, radius) ⇒ InRadius
Returns a new instance of InRadius.
151 152 153 154 |
# File 'lib/sunspot/query/restriction.rb', line 151 def initialize(negated, field, lat, lon, radius) @lat, @lon, @radius = lat, lon, radius super negated, field, [lat, lon, radius] end |