Class: Aws::Xray::IoSocket
- Inherits:
-
Object
- Object
- Aws::Xray::IoSocket
- Defined in:
- lib/aws/xray/sockets.rb
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(io) ⇒ IoSocket
constructor
A new instance of IoSocket.
- #send(body) ⇒ Object
Constructor Details
#initialize(io) ⇒ IoSocket
Returns a new instance of IoSocket.
21 22 23 |
# File 'lib/aws/xray/sockets.rb', line 21 def initialize(io) @io = io end |
Instance Method Details
#close ⇒ Object
29 |
# File 'lib/aws/xray/sockets.rb', line 29 def close; end |
#send(body) ⇒ Object
25 26 27 |
# File 'lib/aws/xray/sockets.rb', line 25 def send(body, *) @io.write(body) end |