Module: Mongoid::GeoPoint

Defined in:
lib/mongoid/geo/point.rb

Instance Method Summary collapse

Instance Method Details

#latObject



52
53
54
# File 'lib/mongoid/geo/point.rb', line 52

def lat
  self[Mongoid::Geo.lat_index]
end

#lat=(value) ⇒ Object



44
45
46
# File 'lib/mongoid/geo/point.rb', line 44

def lat= value
  self[Mongoid::Geo.lat_index] = value
end

#lngObject



56
57
58
# File 'lib/mongoid/geo/point.rb', line 56

def lng
  self[Mongoid::Geo.lng_index]
end

#lng=(value) ⇒ Object



48
49
50
# File 'lib/mongoid/geo/point.rb', line 48

def lng= value
  self[Mongoid::Geo.lng_index] = value
end