Class: GeoAPI::Multipoint

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) ⇒ Multipoint

Returns a new instance of Multipoint.



115
116
117
118
119
# File 'lib/geoapi/geometry.rb', line 115

def initialize attrs
  
  self.coords = []
  super attrs
end

Instance Attribute Details

#coordsObject

Returns the value of attribute coords.



113
114
115
# File 'lib/geoapi/geometry.rb', line 113

def coords
  @coords
end

#geometry_typeObject

Returns the value of attribute geometry_type.



113
114
115
# File 'lib/geoapi/geometry.rb', line 113

def geometry_type
  @geometry_type
end