class Aws::Xray::TestSocket

For test

@example

io = Aws::Xray::TestSocket
Aws::Xray.config.client_options = { sock: io }
# Sending...
io.rewind
sent_jsons = io.read #=> Sent messages
p sent_jsons.split("\n").map {|j| JSON.parse(j) }

Public Instance Methods

close() click to toggle source
# File lib/aws/xray/sockets.rb, line 19
def close; end
send(body, *) click to toggle source
# File lib/aws/xray/sockets.rb, line 15
def send(body, *)
  write(body)
end