Class: URI::AMQP

Inherits:
Generic
  • Object
show all
Defined in:
lib/isono/amqp_client.rb

Overview

Declare amqp:// URI scheme.

Constant Summary collapse

COMPONENT =
[
  :scheme,
  :userinfo, :host, :port,
  :path
].freeze
DEFAULT_PORT =
5672

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ AMQP

Returns a new instance of AMQP.



26
27
28
29
# File 'lib/isono/amqp_client.rb', line 26

def initialize(*args)
  args[5] = '/' if args[5].nil? || args[5] == ''
  super(*args)
end

Class Method Details

.build(args) ⇒ Object



21
22
23
24
# File 'lib/isono/amqp_client.rb', line 21

def self.build(args)
  tmp = Util::make_components_hash(self, args)
  return super(tmp)
end