Class: GeosparqlToGeojson::GeoJson

Inherits:
Object
  • Object
show all
Defined in:
lib/geosparql_to_geojson/geojson.rb

Overview

GeoJSON object

Since:

  • 0.1.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(geojson_string) ⇒ GeoJson

Returns a new instance of GeoJson.

Since:

  • 0.1.0



8
9
10
# File 'lib/geosparql_to_geojson/geojson.rb', line 8

def initialize(geojson_string)
  @geojson = geojson_string
end

Instance Attribute Details

#geojsonObject (readonly)

Since:

  • 0.1.0



6
7
8
# File 'lib/geosparql_to_geojson/geojson.rb', line 6

def geojson
  @geojson
end

Instance Method Details

#validateGeosparqlToGeojson::GeojsonValidator

Creates new instance of GeosparqlToGeojson::GeojsonValidator

Since:

  • 0.1.0



15
16
17
# File 'lib/geosparql_to_geojson/geojson.rb', line 15

def validate
  GeosparqlToGeojson::GeojsonValidator.new(geojson)
end