Class: Mongoid::Geospatial::Circle
- Inherits:
-
GeometryField
- Object
- Array
- GeometryField
- Mongoid::Geospatial::Circle
- Defined in:
- lib/mongoid/geospatial/fields/circle.rb
Overview
Circle
Instance Attribute Summary collapse
-
#center ⇒ Object
(also: #point)
Returns the value of attribute center.
-
#radius ⇒ Object
Returns the value of attribute radius.
Method Summary
Methods inherited from GeometryField
#bounding_box, #center_point, demongoize, #geom_box, #radius_sphere
Instance Attribute Details
#center ⇒ Object Also known as: point
Returns the value of attribute center.
6 7 8 |
# File 'lib/mongoid/geospatial/fields/circle.rb', line 6 def center @center end |
#radius ⇒ Object
Returns the value of attribute radius.
6 7 8 |
# File 'lib/mongoid/geospatial/fields/circle.rb', line 6 def radius @radius end |