Class: Smith::Messaging::Receiver
- Inherits:
-
Object
- Object
- Smith::Messaging::Receiver
- Defined in:
- lib/fake_smith.rb
Instance Method Summary collapse
-
#initialize(queue_name, options = {}) ⇒ Receiver
constructor
A new instance of Receiver.
- #requeue_parameters(opts) ⇒ Object
- #subscribe(&blk) ⇒ Object
Constructor Details
#initialize(queue_name, options = {}) ⇒ Receiver
Returns a new instance of Receiver.
73 74 75 76 |
# File 'lib/fake_smith.rb', line 73 def initialize(queue_name, = {}) @queue_name = queue_name = end |
Instance Method Details
#requeue_parameters(opts) ⇒ Object
82 83 84 |
# File 'lib/fake_smith.rb', line 82 def requeue_parameters(opts) @requeue_opts = opts end |
#subscribe(&blk) ⇒ Object
78 79 80 |
# File 'lib/fake_smith.rb', line 78 def subscribe(&blk) FakeSmith.define_subscription(@queue_name, &blk) end |