Sha256: 1f84369a43375be3fa9d0d6b78b0cf32aa98c42badf6139a2568c10c02e93148

Contents?: true

Size: 375 Bytes

Versions: 1

Compression:

Stored size: 375 Bytes

Contents

module FakeServiceBus
  module Actions
    class RenewLockMessage

      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.renew_lock_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/renew_lock_message.rb