Class: MarilynRPC::NativeClientProxy

Inherits:
ClientBlankSlate show all
Defined in:
lib/marilyn-rpc/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(path, client) ⇒ NativeClientProxy

Creates a new Native client proxy, were the calls get send to the remote side.

Parameters:

  • path (Object)

    the path that is used to identify the service

  • client (NativeClient)

    the client to use for communication



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