Class: DhEasy::Core::Config
- Inherits:
-
Object
- Object
- DhEasy::Core::Config
- Includes:
- Plugin::ConfigBehavior, Plugin::InitializeHook
- Defined in:
- lib/dh_easy/core/config.rb
Overview
Configuration manager tool useful for global configuration data accross
the scraping process.
Instance Attribute Summary
Attributes included from Plugin::ConfigBehavior
Attributes included from Plugin::ContextIntegrator
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Config
constructor
Initialize config object.
Methods included from Plugin::ConfigBehavior
#config_collection, #find_config, #initialize_hook_core_config_behavior
Methods included from Plugin::CollectionVault
Methods included from Plugin::ContextIntegrator
#initialize_hook_core_context_integrator, #mock_context
Methods included from Plugin::InitializeHook
Constructor Details
#initialize(opts = {}) ⇒ Config
Initialize config object
19 20 21 22 23 24 |
# File 'lib/dh_easy/core/config.rb', line 19 def initialize opts = {} opts = opts.merge( config_collection: opts[:collection] ) initialize_hooks opts end |