class NanoConfiguration
Configure the NanoRpc library.
Public Class Methods
client()
click to toggle source
Get the client used to make requests.
# File lib/configuration.rb, line 12 def self.client throw "Set NanoConfiguration.client before making RPC calls" if @@client == nil @@client end
client=(new_client)
click to toggle source
Set the client used to make requests.
new_client
-
The new client, which should be an instance of
NanoRpcClient
.
# File lib/configuration.rb, line 7 def self.client=(new_client) @@client = new_client end