Sha256: bda7578157ebfdba129714a3c6ad964f9aca7c802f75148a533a330d9a757e7f
Contents?: true
Size: 352 Bytes
Versions: 1
Compression:
Stored size: 352 Bytes
Contents
module FakeServiceBus class Server attr_reader :host, :port def initialize(options) @host = options.fetch(:host) @port = options.fetch(:port) end def url_for(queue_id, options = {}) host = options[:host] || @host port = options[:port] || @port "http://#{host}:#{port}/#{queue_id}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fake_servicebus-0.0.2 | lib/fake_servicebus/server.rb |