Sha256: a457dadac79dffd97ef2d8d7fdcb929af412d66cfae6a782c8b3e50104f6d7fb

Contents?: true

Size: 368 Bytes

Versions: 1

Compression:

Stored size: 368 Bytes

Contents

module FakeServiceBus
  module Actions
    class UnlockMessage

      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.unlock_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/unlock_message.rb