Module: Mongoid::Geospatial::Config::Point
Instance Attribute Summary collapse
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
Instance Method Summary collapse
Instance Attribute Details
#x ⇒ Object
Returns the value of attribute x.
7 8 9 |
# File 'lib/mongoid/geospatial/config/point.rb', line 7 def x @x end |
#y ⇒ Object
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 |