Method: QRPC::Locator#initialize

Defined in:
lib/qrpc/locator.rb

#initialize(queue, host = "localhost", port = 11300) ⇒ Locator

Constructor.

Parameters:

  • queue (String, Symbol)

    queue name

  • host (String) (defaults to: "localhost")

    host name

  • port (Integer) (defaults to: 11300)

    port of the host



60
61
62
63
64
# File 'lib/qrpc/locator.rb', line 60

def initialize(queue, host = "localhost", port = 11300)
    @queue = queue.to_s
    @host = host
    @port = port
end