Class: Gum::Filters::Geo

Inherits:
Object
  • Object
show all
Defined in:
lib/gum/filters/geo.rb,
lib/gum/filters/geo/bbox.rb,
lib/gum/filters/geo/range.rb,
lib/gum/filters/geo/distance.rb

Defined Under Namespace

Classes: Bbox, Distance, Range

Class Method Summary collapse

Class Method Details

.new(param, field, options) ⇒ Object



4
5
6
7
# File 'lib/gum/filters/geo.rb', line 4

def self.new(param, field, options)
  filter = const_get options.delete(:type).to_s.camelize
  filter.new param, field, options
end