Sha256: 3560c501fb0527c1e621296dab1b9c08360ab6a610cee3b2bc510f684f71c1fc

Contents?: true

Size: 849 Bytes

Versions: 11

Compression:

Stored size: 849 Bytes

Contents

module AeEasy
  module Core
    # Configuration manager tool useful for global configuration data accross
    #   the scraping process.
    class Config
      include AeEasy::Core::Plugin::InitializeHook
      include AeEasy::Core::Plugin::ConfigBehavior

      # {AeEasy::Core::Plugin::ConfigBehavior#config_collection_key}
      alias :collection_key :config_collection_key
      # {AeEasy::Core::Plugin::ConfigBehavior#config_collection}
      alias :collection :config_collection

      # Initialize config object
      #
      # @param [Hash] opts ({}) Configuration options.
      #
      # @see AeEasy::Core::Plugin::ConfigBehavior#initialize_hook_core_config_behavior
      def initialize opts = {}
        opts = opts.merge(
          config_collection: opts[:collection]
        )
        initialize_hooks opts
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ae_easy-core-0.2.0 lib/ae_easy/core/config.rb
ae_easy-core-0.1.9 lib/ae_easy/core/config.rb
ae_easy-core-0.1.8 lib/ae_easy/core/config.rb
ae_easy-core-0.1.7 lib/ae_easy/core/config.rb
ae_easy-core-0.1.6 lib/ae_easy/core/config.rb
ae_easy-core-0.1.5 lib/ae_easy/core/config.rb
ae_easy-core-0.1.4 lib/ae_easy/core/config.rb
ae_easy-core-0.1.3 lib/ae_easy/core/config.rb
ae_easy-core-0.1.2 lib/ae_easy/core/config.rb
ae_easy-core-0.1.1 lib/ae_easy/core/config.rb
ae_easy-core-0.1.0 lib/ae_easy/core/config.rb