Class: Hopper::Channel::Proxy

Inherits:
Object
  • Object
show all
Defined in:
lib/hopper/channel.rb

Instance Method Summary collapse

Constructor Details

#initialize(hopper, bunny) ⇒ Proxy

Returns a new instance of Proxy.


9
10
11
12
# File 'lib/hopper/channel.rb', line 9

def initialize(hopper, bunny)
  @hopper = hopper
  @bunny = bunny
end

Instance Method Details

#queue(name) ⇒ Object


14
15
16
# File 'lib/hopper/channel.rb', line 14

def queue(name)
  @bunny.queue(name)
end