class PipeRpc::ClientWrapper

Public Class Methods

from_rpc_transport(gateway, client) click to toggle source
# File lib/pipe_rpc/client_wrapper.rb, line 21
def from_rpc_transport(gateway, client)
  if gateway.client_wrapper_class_namespace.const_defined?(client.__rpc_server_class_name__, false)
    gateway.client_wrapper_class_namespace.const_get(client.__rpc_server_class_name__, false).new(gateway, client)
  else
    client
  end
end
new(gateway, client) click to toggle source
# File lib/pipe_rpc/client_wrapper.rb, line 5
def initialize(gateway, client)
  @client = client
  @gateway = gateway
end

Public Instance Methods

inspect() click to toggle source
# File lib/pipe_rpc/client_wrapper.rb, line 10
def inspect
  __rpc_server_id__
end
Also aliased as: to_s
method_missing(method, *args) click to toggle source
# File lib/pipe_rpc/client_wrapper.rb, line 15
def method_missing(method, *args)
  @client.__send__(method, *args)
end
to_s()
Alias for: inspect