Sha256: c99506486948919369e5fa155bcc8acd3355469229f8366f1bb90a97fc47dbdb
Contents?: true
Size: 803 Bytes
Versions: 1
Compression:
Stored size: 803 Bytes
Contents
module FakeServiceBus module Actions class ListQueues def initialize(options = {}) @server = options.fetch(:server) @queues = options.fetch(:queues) @responder = options.fetch(:responder) @request = options.fetch(:request) end def call(params) found = @queues.list(params) xml = Builder::XmlMarkup.new() xml.tag! "feed", :xmlns=>"http://www.w3.org/2005/Atom" do xml.title "Queues", :type=>"text" xml.id "https://fake_servicebus/$Resources/Queues" xml.updated Time.now.utc.iso8601 xml.link :rel=>"self", :href=>"fake_servicebus/$Resources/Queues" found.each do |queue| @responder.queue xml, queue end end 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/list_queues.rb |