Module: Mongoid::Criterion::Inclusion

Defined in:
lib/mongoid_spacial/criterion/inclusion.rb

Instance Method Summary collapse

Instance Method Details

#near(attributes = {}) ⇒ Object



5
6
7
# File 'lib/mongoid_spacial/criterion/inclusion.rb', line 5

def near(attributes = {})
  update_selector(attributes, "$near")
end

#near_sphere(attributes = {}) ⇒ Object



9
10
11
# File 'lib/mongoid_spacial/criterion/inclusion.rb', line 9

def near_sphere(attributes = {})
  update_selector(attributes, "$near")
end