class Liebre::Adapter::Bunny::Conn
Attributes
opts[R]
Public Class Methods
new(opts)
click to toggle source
# File lib/liebre/adapter/bunny/conn.rb, line 9 def initialize opts @opts = opts end
Public Instance Methods
open_channel()
click to toggle source
# File lib/liebre/adapter/bunny/conn.rb, line 17 def open_channel Chan.new(session.create_channel) end
session()
click to toggle source
# File lib/liebre/adapter/bunny/conn.rb, line 25 def session @session ||= ::Bunny.new(opts) end
start()
click to toggle source
# File lib/liebre/adapter/bunny/conn.rb, line 13 def start session.start end
stop()
click to toggle source
# File lib/liebre/adapter/bunny/conn.rb, line 21 def stop session.stop end