Sha256: ee32ce0baecfb98b9f03e69dc61611d03f6230104bb4d3e38da8a370acb37f73

Contents?: true

Size: 420 Bytes

Versions: 14

Compression:

Stored size: 420 Bytes

Contents

# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

module FlakyProxy
  class Server
    attr_reader :host, :port

    def initialize(host, port)
      @host = host
      @port = port
    end

    def open_socket
      TCPSocket.new(@host, @port)
    end

    def to_s
      "#{@host}:#{@port}"
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
newrelic_rpm-3.9.3.241 test/flaky_proxy/lib/flaky_proxy/server.rb
newrelic_rpm-3.9.2.239 test/flaky_proxy/lib/flaky_proxy/server.rb
newrelic_rpm-3.9.1.236 test/flaky_proxy/lib/flaky_proxy/server.rb
newrelic_rpm-3.9.0.229 test/flaky_proxy/lib/flaky_proxy/server.rb
newrelic_rpm-3.8.1.221 test/flaky_proxy/lib/flaky_proxy/server.rb
newrelic_rpm-3.8.0.218 test/flaky_proxy/lib/flaky_proxy/server.rb
newrelic_rpm-3.7.3.204 test/flaky_proxy/lib/flaky_proxy/server.rb
newrelic_rpm-3.7.3.199 test/flaky_proxy/lib/flaky_proxy/server.rb
newrelic_rpm-3.7.2.195 test/flaky_proxy/lib/flaky_proxy/server.rb
newrelic_rpm-3.7.2.192 test/flaky_proxy/lib/flaky_proxy/server.rb
newrelic_rpm-3.7.2.190.beta test/flaky_proxy/lib/flaky_proxy/server.rb
newrelic_rpm-3.7.1.188 test/flaky_proxy/lib/flaky_proxy/server.rb
newrelic_rpm-3.7.1.182 test/flaky_proxy/lib/flaky_proxy/server.rb
newrelic_rpm-3.7.1.180 test/flaky_proxy/lib/flaky_proxy/server.rb