Sha256: b8f42fe2fc062b524a476cacb8d86d7c905ba4fbf033baba5f54e248e4f796bc

Contents?: true

Size: 243 Bytes

Versions: 1

Compression:

Stored size: 243 Bytes

Contents

require 'geojson_model/base'

module GeojsonModel
  class Geometry
    include Base

    attribute :type, String
    attribute :coordinates, Array

    # @return [Feature]
    def to_feature
      Feature.new(geometry: self)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
geojson_model-0.1.1 lib/geojson_model/geometry.rb