Class: GeoAPI::Polygon

Inherits:
Geometry show all
Defined in:
lib/geoapi/geometry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#coordsObject

Returns the value of attribute coords.



126
127
128
# File 'lib/geoapi/geometry.rb', line 126

def coords
  @coords
end

#geometry_typeObject

Returns the value of attribute geometry_type.



126
127
128
# File 'lib/geoapi/geometry.rb', line 126

def geometry_type
  @geometry_type
end