Sha256: 122e513ba85c853da005ca0a13df7012a21af5c44b5672a8bb80db94f619719e

Contents?: true

Size: 869 Bytes

Versions: 3

Compression:

Stored size: 869 Bytes

Contents

# *********************************************************************************
# URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
# See also https://github.com/urbanopt/urbanopt-geojson-gem/blob/develop/LICENSE.md
# *********************************************************************************

require 'urbanopt/geojson/feature'

module URBANopt
  module GeoJSON # :nodoc: all
    class DistrictSystem < Feature
      def initialize(feature)
        super(feature)
      end

      ##
      # Used to describe the feature type using the base method from the Feature class.
      def feature_type
        'District System'
      end

      ##
      # Returns the district system properties schema.
      def schema_file
        return File.join(File.dirname(__FILE__), 'schema', 'district_system_properties.json')
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
urbanopt-geojson-0.11.1 lib/urbanopt/geojson/district_system.rb
urbanopt-geojson-0.11.0 lib/urbanopt/geojson/district_system.rb
urbanopt-geojson-0.10.0 lib/urbanopt/geojson/district_system.rb