Class: JsonRpcTcpClient
- Inherits:
-
JsonRpcClient
- Object
- JsonRpcClient
- JsonRpcTcpClient
- Defined in:
- lib/jsonrpc2.0-tcp/Client.rb
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(hostname, port) ⇒ JsonRpcTcpClient
constructor
A new instance of JsonRpcTcpClient.
Constructor Details
#initialize(hostname, port) ⇒ JsonRpcTcpClient
Returns a new instance of JsonRpcTcpClient.
5 6 7 |
# File 'lib/jsonrpc2.0-tcp/Client.rb', line 5 def initialize(hostname, port) @socket = TCPSocket.new(hostname, port) end |
Instance Method Details
#close ⇒ Object
9 10 11 |
# File 'lib/jsonrpc2.0-tcp/Client.rb', line 9 def close @socket.close end |