Class: Smith::Messaging::Receiver

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

Instance Method Summary collapse

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, options = {})
  @queue_name = queue_name
  @options = options
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