Sha256: c6abb2cbc42c342683073fdc1b466610f89cd1133af3fdc60e7957e84ad694a7
Contents?: true
Size: 484 Bytes
Versions: 1
Compression:
Stored size: 484 Bytes
Contents
module PipeRpc class Client < BasicInterface def initialize(server_id = :default, hub) @__rpc_server_id__ = server_id.to_sym @hub = hub end attr_reader :__rpc_server_id__ def respond_to?(method) super or method_missing(:respond_to?, method) end def method_missing(method, *args) request = Client::Request.new(@hub, server: @__rpc_server_id__, method: method, arguments: args) @hub.requests.evaluate(request) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pipe_rpc-2.2.0 | lib/pipe_rpc/client.rb |