Class: GeoAPI::Polygon
Instance Attribute Summary collapse
-
#coords ⇒ Object
Returns the value of attribute coords.
-
#geometry_type ⇒ Object
Returns the value of attribute geometry_type.
Instance Method Summary collapse
-
#initialize(attrs) ⇒ Polygon
constructor
A new instance of Polygon.
Methods inherited from Geometry
#coordinates, from_hash, from_json, new_from_class_name, #to_json, #type
Constructor Details
#initialize(attrs) ⇒ Polygon
Returns a new instance of Polygon.
128 129 130 131 |
# File 'lib/geoapi/geometry.rb', line 128 def initialize attrs self.coords = [] super attrs end |
Instance Attribute Details
#coords ⇒ Object
Returns the value of attribute coords.
126 127 128 |
# File 'lib/geoapi/geometry.rb', line 126 def coords @coords end |
#geometry_type ⇒ Object
Returns the value of attribute geometry_type.
126 127 128 |
# File 'lib/geoapi/geometry.rb', line 126 def geometry_type @geometry_type end |