class URBANopt::GeoJSON::Region

Public Class Methods

new(feature) click to toggle source

Used to initialize the feature. This method is inherited from the Feature class.

Calls superclass method URBANopt::GeoJSON::Feature::new
# File lib/urbanopt/geojson/region.rb, line 13
def initialize(feature)
  super(feature)
end

Public Instance Methods

feature_type() click to toggle source

Used to describe the Region feature type using the base method from the Feature class.

# File lib/urbanopt/geojson/region.rb, line 19
def feature_type
  'Region'
end
schema_file() click to toggle source

Returns the region_properties schema.

# File lib/urbanopt/geojson/region.rb, line 25
def schema_file
  return File.join(File.dirname(__FILE__), 'schema', 'region_properties.json')
end