class ThriftyBunny::Config
Attributes
exchange[R]
host[R]
log[R]
password[R]
port[R]
queue[R]
ssl[R]
timeout[R]
user[R]
vhost[R]
Public Class Methods
new(options={})
click to toggle source
# File lib/thrifty_bunny/config.rb, line 8 def initialize(options={}) @host = options[:host] || '127.0.0.1' @port = options[:port] || 5672 @vhost = options[:vhost] || "/" @user = options[:user] || "guest" @password = options[:password] || "guest" @ssl = options[:ssl] || false @queue = options[:queue] || 'rpc_queue' @exchange = options[:exchange] || 'rpc_exchange' @timeout = options[:timeout] || 30 # seconds @log = options[:log].nil? ? true : options[:log] end
Public Instance Methods
bunny_config()
click to toggle source
# File lib/thrifty_bunny/config.rb, line 24 def bunny_config { host: host, port: port, vhost: vhost, user: user, password: password, ssl: ssl } end