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.



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

def x
  @x
end

#yObject

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