Class: URBANopt::Core::FeatureFile
- Inherits:
-
Object
- Object
- URBANopt::Core::FeatureFile
- Defined in:
- lib/urbanopt/core/feature_file.rb
Instance Method Summary collapse
-
#features ⇒ Object
Get a list of all Features in this FeatureFile.
-
#get_feature_by_id(id) ⇒ Object
Return a specific Feature by id, return nil if not found.
-
#initialize ⇒ FeatureFile
constructor
A FeatureFile contains multiple Features.
-
#path ⇒ Object
Get the path to this FeatureFile.
Constructor Details
#initialize ⇒ FeatureFile
A FeatureFile contains multiple Features
12 |
# File 'lib/urbanopt/core/feature_file.rb', line 12 def initialize; end |
Instance Method Details
#features ⇒ Object
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 |
#path ⇒ Object
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 |