Class: Mongoid::Geospatial::Circle

Inherits:
GeometryField show all
Defined in:
lib/mongoid/geospatial/fields/circle.rb

Overview

Circle

Instance Attribute Summary collapse

Method Summary

Methods inherited from GeometryField

#bounding_box, #center_point, demongoize, #geom_box, #radius_sphere

Instance Attribute Details

#centerObject 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

#radiusObject

Returns the value of attribute radius


6
7
8
# File 'lib/mongoid/geospatial/fields/circle.rb', line 6

def radius
  @radius
end