Sha256: 6e5f718d29587b92517ea3cfa9f5c0c9c36a0cab9d28922b2999fdc51eb8e92e
Contents?: true
Size: 345 Bytes
Versions: 3
Compression:
Stored size: 345 Bytes
Contents
module FakeSQS 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fake_sqs-0.4.3 | lib/fake_sqs/server.rb |
fake_sqs-0.4.2 | lib/fake_sqs/server.rb |
fake_sqs-0.4.1 | lib/fake_sqs/server.rb |