Class: ActiveInteractor::Config

Inherits:
Object
  • Object
show all
Includes:
Configurable
Defined in:
lib/active_interactor/config.rb

Overview

The ActiveInteractor configuration object

Author:

Since:

  • 1.0.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Config

Initialize a new instance of ActiveInteractor::Config

Parameters:

Options Hash (options):

  • :logger (Class) — default: Logger.new(STDOUT)

    the #logger attribute

Since:

  • 1.0.0



24
25
26
27
# File 'lib/active_interactor/config.rb', line 24

class Config
  include ActiveInteractor::Configurable
  defaults logger: Logger.new($stdout)
end

Instance Attribute Details

#loggerClass

The logger instance to use for logging.

Returns:

  • (Class)

    an instance of Logger.

Since:

  • 1.0.0



24
25
26
27
# File 'lib/active_interactor/config.rb', line 24

class Config
  include ActiveInteractor::Configurable
  defaults logger: Logger.new($stdout)
end