Class: Sunspot::Query::Restriction::InRadius

Inherits:
Base
  • Object
show all
Defined in:
lib/sunspot/query/restriction.rb

Constant Summary

Constants inherited from Base

Base::RESERVED_WORDS

Instance Method Summary collapse

Methods inherited from Base

#negate, #negated?, #to_boolean_phrase, #to_negated_boolean_phrase, #to_params

Methods included from Filter

#tag, #to_filter_query

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