Sha256: 542a15c1bfbf41a81083c7fc5d51f8433753655f5a71ec9236c74ed4730c6741
Contents?: true
Size: 540 Bytes
Versions: 4
Compression:
Stored size: 540 Bytes
Contents
module FakeSQS module Actions class ChangeMessageVisibility def initialize(options = {}) @server = options.fetch(:server) @queues = options.fetch(:queues) @responder = options.fetch(:responder) end def call(queue, params) visibility = params.fetch("VisibilityTimeout") receipt = params.fetch("ReceiptHandle") @queues.get(queue).change_message_visibility( receipt, visibility.to_i ) @responder.call :ChangeMessageVisibility end end end end
Version data entries
4 entries across 4 versions & 1 rubygems