Class: Miu::RPC::Client
- Inherits:
-
Object
- Object
- Miu::RPC::Client
- Includes:
- Celluloid::ZMQ
- Defined in:
- lib/miu/rpc/client.rb
Defined Under Namespace
Classes: Evaluator
Instance Method Summary collapse
- #call(method, *args) ⇒ Object
- #close ⇒ Object
-
#initialize(address) ⇒ Client
constructor
A new instance of Client.
- #notify(method, *args) ⇒ Object
Constructor Details
Instance Method Details
#call(method, *args) ⇒ Object
33 34 35 36 37 |
# File 'lib/miu/rpc/client.rb', line 33 def call(method, *args) @evaluator.call method, *args rescue Exception => e abort e end |
#close ⇒ Object
29 30 31 |
# File 'lib/miu/rpc/client.rb', line 29 def close @socket.close end |
#notify(method, *args) ⇒ Object
39 40 41 42 43 |
# File 'lib/miu/rpc/client.rb', line 39 def notify(method, *args) @evaluator.notify method, *args rescue Exception => e abort e end |