Class: Miu::RPC::Client::Evaluator
- Inherits:
-
Object
- Object
- Miu::RPC::Client::Evaluator
- Includes:
- Helpers, Saorin::Client::Base
- Defined in:
- lib/miu/rpc/client.rb
Instance Method Summary collapse
-
#initialize(socket) ⇒ Evaluator
constructor
A new instance of Evaluator.
- #send_request(content) ⇒ Object
Methods included from Helpers
Constructor Details
#initialize(socket) ⇒ Evaluator
Returns a new instance of Evaluator.
12 13 14 15 |
# File 'lib/miu/rpc/client.rb', line 12 def initialize(socket) super :formatter => MessagePack @socket = socket end |
Instance Method Details
#send_request(content) ⇒ Object
17 18 19 20 |
# File 'lib/miu/rpc/client.rb', line 17 def send_request(content) @socket.write content read_parts(@socket)[0] end |