Sha256: 8f5880a1ca263176582ddaa31d0104b9915e2a175096f78fd8a8117fc8455d00

Contents?: true

Size: 368 Bytes

Versions: 1

Compression:

Stored size: 368 Bytes

Contents

module FakeServiceBus
  module Actions
    class DeleteMessage

      def initialize(options = {})
        @server    = options.fetch(:server)
        @queues    = options.fetch(:queues)
      end

      def call(queue_name, lock_token, params)
        queue = @queues.get(queue_name)

        queue.delete_message(lock_token)
        200
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fake_servicebus-0.0.2 lib/fake_servicebus/actions/delete_message.rb