Class: PredictabilityEngine::DataSources::Base
- Inherits:
-
Object
- Object
- PredictabilityEngine::DataSources::Base
- Defined in:
- lib/predictability_engine/data_sources/base.rb
Instance Method Summary collapse
Instance Method Details
#configure(opts) ⇒ Object
8 9 10 11 |
# File 'lib/predictability_engine/data_sources/base.rb', line 8 def configure(opts) @url_prefix = opts[:url_prefix] self end |
#load(source_spec) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/predictability_engine/data_sources/base.rb', line 13 def load(source_spec) apply_project_config_defaults perform_load(source_spec) rescue StandardError => e raise Error, "Failed to load from #{source_name}: #{e.}" end |