Class: Hopper::Channel::Queue
- Inherits:
-
Object
- Object
- Hopper::Channel::Queue
- Defined in:
- lib/hopper/channel/queue.rb,
lib/hopper/channel/queue/listener.rb,
lib/hopper/channel/queue/publisher.rb
Defined Under Namespace
Classes: Listener, Proxy, Publisher
Instance Attribute Summary collapse
-
#queue ⇒ Object
readonly
Returns the value of attribute queue.
Instance Method Summary collapse
-
#initialize(channel, queue) ⇒ Queue
constructor
A new instance of Queue.
- #listener(opts = {}) ⇒ Object
- #publisher(opts = {}) ⇒ Object
Constructor Details
#initialize(channel, queue) ⇒ Queue
Returns a new instance of Queue.
24 25 26 27 28 |
# File 'lib/hopper/channel/queue.rb', line 24 def initialize(channel,queue) @channel = channel @queue = queue end |
Instance Attribute Details
#queue ⇒ Object (readonly)
Returns the value of attribute queue.
30 31 32 |
# File 'lib/hopper/channel/queue.rb', line 30 def queue @queue end |