Class: URBANopt::GeoJSON::DistrictSystem
- Defined in:
- lib/urbanopt/geojson/district_system.rb
Instance Attribute Summary
Attributes inherited from Feature
Instance Method Summary collapse
-
#feature_type ⇒ Object
Used to describe the feature type using the base method from the Feature class.
-
#initialize(feature) ⇒ DistrictSystem
constructor
A new instance of DistrictSystem.
-
#schema_file ⇒ Object
Returns the district system properties schema.
Methods inherited from Feature
#calculate_aspect_ratio, #create_origin_lat_lon, #find_feature_center, #get_min_lon_lat, #get_multi_polygons, #get_perimeter_multiplier, #id, #method_missing, #name, #schema
Constructor Details
#initialize(feature) ⇒ DistrictSystem
Returns a new instance of DistrictSystem.
11 12 13 |
# File 'lib/urbanopt/geojson/district_system.rb', line 11 def initialize(feature) super(feature) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class URBANopt::GeoJSON::Feature
Instance Method Details
#feature_type ⇒ Object
Used to describe the feature type using the base method from the Feature class.
17 18 19 |
# File 'lib/urbanopt/geojson/district_system.rb', line 17 def feature_type 'District System' end |
#schema_file ⇒ Object
Returns the district system properties schema.
23 24 25 |
# File 'lib/urbanopt/geojson/district_system.rb', line 23 def schema_file return File.join(File.dirname(__FILE__), 'schema', 'district_system_properties.json') end |