Class: URI::AMQP

Inherits:
Generic
  • Object
show all
Defined in:
lib/ext/uri.rb

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.



18
19
20
21
# File 'lib/ext/uri.rb', line 18

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

Class Method Details

.build(args) ⇒ Object



13
14
15
16
# File 'lib/ext/uri.rb', line 13

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