Class: URBANopt::Core::FeatureFile

Inherits:
Object
  • Object
show all
Defined in:
lib/urbanopt/core/feature_file.rb

Instance Method Summary collapse

Constructor Details

#initializeFeatureFile

A FeatureFile contains multiple Features



37
# File 'lib/urbanopt/core/feature_file.rb', line 37

def initialize; end

Instance Method Details

#featuresObject

Get a list of all Features in this FeatureFile



49
50
51
# File 'lib/urbanopt/core/feature_file.rb', line 49

def features
  raise 'features not implemented for FeatureFile, override in your class'
end

#get_feature_by_id(id) ⇒ Object

Return a specific Feature by id, return nil if not found



56
57
58
# File 'lib/urbanopt/core/feature_file.rb', line 56

def get_feature_by_id(id)
  raise 'get_feature_by_id not implemented for FeatureFile, override in your class'
end

#pathObject

Get the path to this FeatureFile



42
43
44
# File 'lib/urbanopt/core/feature_file.rb', line 42

def path
  raise 'path not implemented for FeatureFile, override in your class'
end