class FakeSQS::Responder
Public Instance Methods
call(name) { |xml| ... }
click to toggle source
# File lib/fake_sqs/responder.rb, line 7 def call(name, &block) xml = Builder::XmlMarkup.new() xml.tag! "#{name}Response" do if block xml.tag! "#{name}Result" do yield xml end end xml.ResponseMetadata do xml.RequestId SecureRandom.uuid end end end