Class: URI::AMQP

Inherits:
Generic
  • Object
show all
Defined in:
lib/uri/amqp.rb,
lib/uri/amqp/version.rb

Direct Known Subclasses

AMQPS

Constant Summary collapse

DEFAULT_PORT =
5672
COMPONENT =
%i[
  scheme
  userinfo host port
  vhost
  query
].freeze
VERSION =
'1.0.2'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*arg) ⇒ AMQP

Returns a new instance of AMQP.



20
21
22
23
24
25
# File 'lib/uri/amqp.rb', line 20

def initialize(*arg)
  super(*arg)

  parse_path
  parse_query
end

Instance Attribute Details

#cacertfileObject

Returns the value of attribute cacertfile.



27
28
29
# File 'lib/uri/amqp.rb', line 27

def cacertfile
  @cacertfile
end

#certfileObject

Returns the value of attribute certfile.



27
28
29
# File 'lib/uri/amqp.rb', line 27

def certfile
  @certfile
end

#channel_maxObject

Returns the value of attribute channel_max.



27
28
29
# File 'lib/uri/amqp.rb', line 27

def channel_max
  @channel_max
end

#connection_timeoutObject

Returns the value of attribute connection_timeout.



27
28
29
# File 'lib/uri/amqp.rb', line 27

def connection_timeout
  @connection_timeout
end

#fail_if_no_peer_certObject

Returns the value of attribute fail_if_no_peer_cert.



27
28
29
# File 'lib/uri/amqp.rb', line 27

def fail_if_no_peer_cert
  @fail_if_no_peer_cert
end

#heartbeatObject

Returns the value of attribute heartbeat.



27
28
29
# File 'lib/uri/amqp.rb', line 27

def heartbeat
  @heartbeat
end

#keyfileObject

Returns the value of attribute keyfile.



27
28
29
# File 'lib/uri/amqp.rb', line 27

def keyfile
  @keyfile
end

#verifyObject

Returns the value of attribute verify.



27
28
29
# File 'lib/uri/amqp.rb', line 27

def verify
  @verify
end

#vhostObject

Returns the value of attribute vhost.



27
28
29
# File 'lib/uri/amqp.rb', line 27

def vhost
  @vhost
end

Instance Method Details

#hierarchical?Boolean

URI::AMQP doesn’t have path

Returns:

  • (Boolean)


72
73
74
# File 'lib/uri/amqp.rb', line 72

def hierarchical?
  false
end