Class: GeoAPI::Multipoint
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) ⇒ Multipoint
constructor
A new instance of Multipoint.
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
#coords ⇒ Object
Returns the value of attribute coords.
113 114 115 |
# File 'lib/geoapi/geometry.rb', line 113 def coords @coords end |
#geometry_type ⇒ Object
Returns the value of attribute geometry_type.
113 114 115 |
# File 'lib/geoapi/geometry.rb', line 113 def geometry_type @geometry_type end |