Class: URI::AMQP

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

Overview

AMQP URI scheme for the AMQP protocol

Direct Known Subclasses

AMQPS

Constant Summary collapse

DEFAULT_PORT =
5672

Instance Method Summary collapse

Instance Method Details

#amqp_addressString

Returns The AMQP address is the #path stripped of any leading “/”.

Returns:

  • (String)

    The AMQP address is the #path stripped of any leading “/”



35
# File 'lib/core/uri.rb', line 35

def amqp_address() path[0] == "/" ? path[1..-1] : path; end