Module: MagicPipe::Transports

Defined in:
lib/magic_pipe/errors.rb,
lib/magic_pipe/transports.rb,
lib/magic_pipe/transports/log.rb,
lib/magic_pipe/transports/sqs.rb,
lib/magic_pipe/transports/base.rb,
lib/magic_pipe/transports/debug.rb,
lib/magic_pipe/transports/https.rb,
lib/magic_pipe/transports/kafka.rb,
lib/magic_pipe/transports/multi.rb

Defined Under Namespace

Classes: Base, Debug, Https, Kafka, Log, Multi, NotImplementedError, Sqs, SubmitFailedError

Class Method Summary collapse

Class Method Details

.lookup(type) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/magic_pipe/transports.rb', line 3

def self.lookup(type)
  case type
  when :https then Https
  when :sqs then Sqs
  when :log then Log
  when :debug then Debug
  when Array then Multi
  when Class then type
  else
    raise ConfigurationError, "Unknown MagicPipe::Transports type: '#{type}'."
  end
end