Sha256: b3d6fd98f24e21c10d0b3c48126cb192e92c7973d523c8ba96592f9eb7cce408

Contents?: true

Size: 385 Bytes

Versions: 4

Compression:

Stored size: 385 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(name, params)
        queue = @queues.get(name)
        queue.reset()
        @responder.call :PurgeQueue
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fake_sqs-0.4.1 lib/fake_sqs/actions/purge_queue.rb
fake_sqs-0.4.0 lib/fake_sqs/actions/purge_queue.rb
fake_sqs-0.3.1 lib/fake_sqs/actions/purge_queue.rb
fake_sqs-0.3.0 lib/fake_sqs/actions/purge_queue.rb