Module: Mongoid::Geospatial::Config::Point

Extended by:
Point
Included in:
Point
Defined in:
lib/mongoid/geospatial/config/point.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#xObject

Returns the value of attribute x.



7
8
9
# File 'lib/mongoid/geospatial/config/point.rb', line 7

def x
  @x
end

#yObject

Returns the value of attribute y.



8
9
10
# File 'lib/mongoid/geospatial/config/point.rb', line 8

def y
  @y
end

Instance Method Details

#reset!Object



10
11
12
13
# File 'lib/mongoid/geospatial/config/point.rb', line 10

def reset!
  self.x = Mongoid::Geospatial.lng_symbols
  self.y = Mongoid::Geospatial.lat_symbols
end