Sha256: 2e4ddc73792050758072cffa486130dff8dae0ccffb5061f98006f31ead04962
Contents?: true
Size: 483 Bytes
Versions: 13
Compression:
Stored size: 483 Bytes
Contents
module FakeSQS module Actions class CreateQueue def initialize(options = {}) @server = options.fetch(:server) @queues = options.fetch(:queues) @responder = options.fetch(:responder) end def call(params) name = params.fetch("QueueName") queue = @queues.create(name, params) @responder.call :CreateQueue do |xml| xml.QueueUrl @server.url_for(queue.name) end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems