Class: GeosparqlToGeojson::GeoJson
- Inherits:
-
Object
- Object
- GeosparqlToGeojson::GeoJson
- Defined in:
- lib/geosparql_to_geojson/geojson.rb
Overview
GeoJSON object
Instance Attribute Summary collapse
- #geojson ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(geojson_string) ⇒ GeoJson
constructor
A new instance of GeoJson.
-
#validate ⇒ GeosparqlToGeojson::GeojsonValidator
Creates new instance of GeosparqlToGeojson::GeojsonValidator.
Constructor Details
#initialize(geojson_string) ⇒ GeoJson
Returns a new instance of GeoJson.
8 9 10 |
# File 'lib/geosparql_to_geojson/geojson.rb', line 8 def initialize(geojson_string) @geojson = geojson_string end |
Instance Attribute Details
#geojson ⇒ Object (readonly)
6 7 8 |
# File 'lib/geosparql_to_geojson/geojson.rb', line 6 def geojson @geojson end |
Instance Method Details
#validate ⇒ GeosparqlToGeojson::GeojsonValidator
Creates new instance of GeosparqlToGeojson::GeojsonValidator
15 16 17 |
# File 'lib/geosparql_to_geojson/geojson.rb', line 15 def validate GeosparqlToGeojson::GeojsonValidator.new(geojson) end |