Class: Daedal::Filters::GeoDistanceRangeFilter
- Defined in:
- lib/daedal/filters/geo_distance_range_filter.rb
Constant Summary collapse
- POSSIBLE_COMPARE_OPTIONS =
%i(gte gt lte lt)
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ GeoDistanceRangeFilter
constructor
A new instance of GeoDistanceRangeFilter.
- #to_hash ⇒ Object
Methods inherited from Filter
Constructor Details
#initialize(options = {}) ⇒ GeoDistanceRangeFilter
Returns a new instance of GeoDistanceRangeFilter.
18 19 20 21 |
# File 'lib/daedal/filters/geo_distance_range_filter.rb', line 18 def initialize(={}) super () end |
Instance Method Details
#to_hash ⇒ Object
23 24 25 26 27 28 29 30 31 32 |
# File 'lib/daedal/filters/geo_distance_range_filter.rb', line 23 def to_hash { geo_distance_range: { field => { lat: lat, lon: lon } }.merge() } end |