Module: Mongoid::GeoPoint

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

Instance Method Summary collapse

Instance Method Details

#latObject



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

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

#lat=(value) ⇒ Object



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

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

#lngObject



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

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

#lng=(value) ⇒ Object



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

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