lib/message_queue.rb
# Public: Initialize a connection to a message queue, connect and execute code in a block.
#
# options - The Hash options used to initialize a connection
#           :adapter - The Symbol adapter, currently only :bunny is supported.
#                      Detailed options see individual adapter implementation.
#           :serializer - The Symbol serializer for serialization.
# block   - The code to execute. The connection object with be passed in.
#
# Returns nothing
# Raises a RuntimeError if an adapter can't be found.
Initialize a connection to a message queue, connect and execute code in a block.
options - The Hash options used to initialize a connection
:adapter - The Symbol adapter, currently only :bunny is supported.
Detailed options see individual adapter implementation.
:serializer - The Symbol serializer for serialization.
block   - The code to execute. The connection object with be passed in.

Returns nothing
Raises a RuntimeError if an adapter can't be found.
Initialize a connection to a message queue connect and execute code in a block . options - The Hash options used to initialize a connection : adapter - The Symbol adapter currently only : bunny is supported . Detailed options see individual adapter implementation . : serializer - The Symbol serializer for serialization . block - The code to execute . The connection object with be passed in . Returns nothing Raises a RuntimeError if an adapter can ' t be found .
def with_connection(options = {}, &block)
    options = options.to_hash
    connection = new_connection(options)
    connection.with_connection(&block)
  end
def with_connection ( options = { } , & block ) options = options . to_hash connection = new_connection ( options ) connection . with_connection ( & block ) end
Public: Initialize a connection to a message queue, connect and execute code in a block.
Public : Initialize a connection to a message queue connect and execute code in a block .
options
<not_specific>
block
<not_specific>