Class: Miu::RPC::Client::Evaluator

Inherits:
Object
  • Object
show all
Includes:
Helpers, Saorin::Client::Base
Defined in:
lib/miu/rpc/client.rb

Instance Method Summary collapse

Methods included from Helpers

#read_parts

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