Class: MagicPipe::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/magic_pipe/config.rb

Constant Summary collapse

FIELDS =
[
  :client_name,      # the name of this client
  :producer_name,
  :logger,           # A Logger
  :metrics_client,   # Statsd compatible object

  :loader,
  :codec,
  :transport,
  :sender,

  :https_transport_options,
  :sqs_transport_options,
  :async_transport_options,
]

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ Config

Returns a new instance of Config.

Yields:

  • (_self)

Yield Parameters:



27
28
29
30
# File 'lib/magic_pipe/config.rb', line 27

def initialize
  yield self if block_given?
  set_defaults
end