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.
23 24 25 |
# File 'lib/aws/xray/sockets.rb', line 23 def initialize(io) @io = io end |
Instance Method Details
#close ⇒ Object
31 |
# File 'lib/aws/xray/sockets.rb', line 31 def close; end |
#send(body) ⇒ Object
27 28 29 |
# File 'lib/aws/xray/sockets.rb', line 27 def send(body, *) @io.write(body) end |