Sha256: dd9ca8b7cf9b4fca4285f42c83f31e22017954fc20afd6a846739f1562b60463

Contents?: true

Size: 256 Bytes

Versions: 13

Compression:

Stored size: 256 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)
      "http://#{host}:#{port}/#{queue_id}"
    end

  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
fake_sqs-0.4.0 lib/fake_sqs/server.rb
fake_sqs-0.3.1 lib/fake_sqs/server.rb
fake_sqs-0.3.0 lib/fake_sqs/server.rb
fake_sqs-0.2.0 lib/fake_sqs/server.rb
fake_sqs-0.1.0 lib/fake_sqs/server.rb
fake_sqs-0.0.11 lib/fake_sqs/server.rb
fake_sqs-0.0.10 lib/fake_sqs/server.rb
fake_sqs-0.0.9 lib/fake_sqs/server.rb
fake_sqs-0.0.8 lib/fake_sqs/server.rb
fake_sqs-0.0.7 lib/fake_sqs/server.rb
fake_sqs-0.0.6 lib/fake_sqs/server.rb
fake_sqs-0.0.5 lib/fake_sqs/server.rb
fake_sqs-0.0.4 lib/fake_sqs/server.rb