Class: MarilynRPC::NativeClientProxy
- Inherits:
-
ClientBlankSlate
- Object
- ClientBlankSlate
- MarilynRPC::NativeClientProxy
- Defined in:
- lib/marilyn-rpc/client.rb
Instance Method Summary collapse
-
#initialize(path, client) ⇒ NativeClientProxy
constructor
Creates a new Native client proxy, were the calls get send to the remote side.
-
#method_missing(method, *args, &block) ⇒ Object
Handler for calls to the remote system.
Constructor Details
#initialize(path, client) ⇒ NativeClientProxy
Creates a new Native client proxy, were the calls get send to the remote side.
15 16 17 |
# File 'lib/marilyn-rpc/client.rb', line 15 def initialize(path, client) @path, @client = path, client end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
Handler for calls to the remote system
20 21 22 |
# File 'lib/marilyn-rpc/client.rb', line 20 def method_missing(method, *args, &block) @client.execute(@path, method, args) end |