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



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

def initialize; end

Instance Method Details

#featuresObject

Get a list of all Features in this FeatureFile



24
25
26
# File 'lib/urbanopt/core/feature_file.rb', line 24

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



31
32
33
# File 'lib/urbanopt/core/feature_file.rb', line 31

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



17
18
19
# File 'lib/urbanopt/core/feature_file.rb', line 17

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