Sha256: b2a4776b9e9b8c31fa3e3421e347b65871145b2bc9a74d55332813f127d4d00e

Contents?: true

Size: 1.02 KB

Versions: 2

Compression:

Stored size: 1.02 KB

Contents

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

module URBANopt
  module Core
    class FeatureFile
      ##
      # A FeatureFile contains multiple Features
      ##
      def initialize; end

      ##
      # Get the path to this FeatureFile
      ##
      def path
        raise 'path not implemented for FeatureFile, override in your class'
      end

      ##
      # Get a list of all Features in this FeatureFile
      ##
      def features
        raise 'features not implemented for FeatureFile, override in your class'
      end

      ##
      # Return a specific Feature by id, return nil if not found
      ##
      def get_feature_by_id(id)
        raise 'get_feature_by_id not implemented for FeatureFile, override in your class'
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
urbanopt-core-0.11.0 lib/urbanopt/core/feature_file.rb
urbanopt-core-0.10.0 lib/urbanopt/core/feature_file.rb