Method: Hopper::Channel#initialize
- Defined in:
- lib/hopper/channel.rb
permalink #initialize ⇒ Channel
Returns a new instance of Channel.
19 20 21 22 23 24 25 26 27 |
# File 'lib/hopper/channel.rb', line 19 def initialize conn = Bunny.new conn.start @bunny = conn.create_channel @bunny.prefetch(1) @queues = {} end |