Module: AMQP::ServerNamedEntity

Included in:
Queue
Defined in:
lib/amqp/entity.rb

Overview

Common behavior of AMQ entities that can be either client or server-named, for example, exchanges and queues.

Instance Method Summary collapse

Instance Method Details

#server_named?Boolean Also known as: anonymous?

Returns true if this entity is anonymous (server-named)

Returns:

  • (Boolean)

    true if this entity is anonymous (server-named)



65
66
67
# File 'lib/amqp/entity.rb', line 65

def server_named?
  @server_named || @name.nil? || @name.empty?
end