Sha256: a2558db4307c1b26743d6c006d0065a96197a972778d9a7caf60201dc8f85d1c
Contents?: true
Size: 397 Bytes
Versions: 2
Compression:
Stored size: 397 Bytes
Contents
module FakeSQS module Actions class PurgeQueue 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) queue.reset() @responder.call :PurgeQueue 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/purge_queue.rb |
fake_sqs-0.4.2 | lib/fake_sqs/actions/purge_queue.rb |