Class: SpatialFeatures::Importers::Base
- Inherits:
-
Object
- Object
- SpatialFeatures::Importers::Base
show all
- Defined in:
- lib/spatial_features/importers/base.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(data, make_valid: false) ⇒ Base
8
9
10
11
12
|
# File 'lib/spatial_features/importers/base.rb', line 8
def initialize(data, make_valid: false)
@make_valid = make_valid
@data = data
@errors = []
end
|
Instance Attribute Details
#errors ⇒ Object
Returns the value of attribute errors.
6
7
8
|
# File 'lib/spatial_features/importers/base.rb', line 6
def errors
@errors
end
|
Instance Method Details
#cache_key ⇒ Object
18
19
20
|
# File 'lib/spatial_features/importers/base.rb', line 18
def cache_key
@cache_key ||= Digest::MD5.hexdigest(@data)
end
|
#features ⇒ Object
14
15
16
|
# File 'lib/spatial_features/importers/base.rb', line 14
def features
@features ||= build_features
end
|