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.
9 10 11 |
# File 'lib/mongoid/geospatial/config/point.rb', line 9 def x @x end |
#y ⇒ Object
Returns the value of attribute y.
9 10 11 |
# File 'lib/mongoid/geospatial/config/point.rb', line 9 def y @y end |
Instance Method Details
#reset! ⇒ Object
11 12 13 14 15 |
# File 'lib/mongoid/geospatial/config/point.rb', line 11 def reset! # Now self.x and self.y refer to the public module accessors self.x = Mongoid::Geospatial.lng_symbols self.y = Mongoid::Geospatial.lat_symbols end |