Module: MagicPipe::Senders

Defined in:
lib/magic_pipe/senders.rb,
lib/magic_pipe/senders/base.rb,
lib/magic_pipe/senders/sync.rb,
lib/magic_pipe/senders/async.rb,
lib/magic_pipe/senders/metrics_mixin.rb

Defined Under Namespace

Modules: MetricsMixin Classes: Async, Base, Sync

Class Method Summary collapse

Class Method Details

.lookup(type) ⇒ Object



3
4
5
6
7
8
9
10
11
# File 'lib/magic_pipe/senders.rb', line 3

def self.lookup(type)
  case type
  when :sync then Sync
  when :async then Async
  when Class then type
  else
    raise ConfigurationError, "Unknown MagicPipe::Senders type: '#{type}'."
  end
end