Class: NanodeClient
- Inherits:
-
NanoRpcClient
- Object
- NanoRpcClient
- NanodeClient
- Defined in:
- lib/clients.rb
Overview
A variant of NanoRpcClient
which connects public to Nanode servers using an API key.
Instance Method Summary collapse
-
#initialize(key) ⇒ NanodeClient
constructor
Create a new Nanode client.
Methods inherited from NanoRpcClient
#method_missing, mrai_to_raw, #req
Constructor Details
#initialize(key) ⇒ NanodeClient
Create a new Nanode client. Params:
key
-
A valid Nanode API key.
58 59 60 61 |
# File 'lib/clients.rb', line 58 def initialize(key) @dispatcher = HTTP.auth(key) @endpoint = "https://api.nanode.co/" end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class NanoRpcClient