Class: DhEasy::Core::Config

Inherits:
Object
  • Object
show all
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

#config_collection_key

Attributes included from Plugin::ContextIntegrator

#context

Instance Method Summary collapse

Methods included from Plugin::ConfigBehavior

#config_collection, #find_config, #initialize_hook_core_config_behavior

Methods included from Plugin::CollectionVault

#add_collection, #collections

Methods included from Plugin::ContextIntegrator

#initialize_hook_core_context_integrator, #mock_context

Methods included from Plugin::InitializeHook

#initialize_hooks

Constructor Details

#initialize(opts = {}) ⇒ Config

Initialize config object

Parameters:

  • opts (Hash) (defaults to: {})

    ({}) Configuration options.

See Also:



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