Sha256: 7c44060c8472546ac24fdb034eeaf82ad0c5f3baa97e3a18fa6febb6551a9211

Contents?: true

Size: 715 Bytes

Versions: 3

Compression:

Stored size: 715 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

      alias :collection_key :config_collection_key
      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

3 entries across 3 versions & 1 rubygems

Version Path
ae_easy-core-0.0.5 lib/ae_easy/core/config.rb
ae_easy-core-0.0.4 lib/ae_easy/core/config.rb
ae_easy-core-0.0.3 lib/ae_easy/core/config.rb