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
37 |
# File 'lib/urbanopt/core/feature_file.rb', line 37 def initialize; end |
Instance Method Details
#features ⇒ Object
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 |
#path ⇒ Object
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 |