Sha256: 74d7862a192b1e7e01c62c0749fe421a86b40e9498934211849f7d43f49cc046
Contents?: true
Size: 468 Bytes
Versions: 2
Compression:
Stored size: 468 Bytes
Contents
module FakeSQS module Actions class DeleteMessage def initialize(options = {}) @server = options.fetch(:server) @queues = options.fetch(:queues) @responder = options.fetch(:responder) end def call(queue_name, params) queue = @queues.get(queue_name) receipt = params.fetch("ReceiptHandle") queue.delete_message(receipt) @responder.call :DeleteMessage end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fake_sqs-0.4.3 | lib/fake_sqs/actions/delete_message.rb |
fake_sqs-0.4.2 | lib/fake_sqs/actions/delete_message.rb |