Module: RateThrottleClient::UniquePort

Defined in:
lib/rate_throttle_client/demo.rb

Class Method Summary collapse

Class Method Details

.callObject



293
294
295
296
297
# File 'lib/rate_throttle_client/demo.rb', line 293

def self.call
  TCPServer.open('127.0.0.1', 0) do |server|
    server.connect_address.ip_port
  end
end