Class: Filecoin::Client
- Inherits:
-
Object
- Object
- Filecoin::Client
- Includes:
- Node
- Defined in:
- lib/filecoin/client.rb,
lib/filecoin/client/node.rb
Defined Under Namespace
Modules: Node
Instance Attribute Summary collapse
-
#token ⇒ Object
readonly
Returns the value of attribute token.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Node
#chain_head, #client_get_deal_info, #client_query_ask, #client_start_deal, #net_peers, #state_power
Constructor Details
#initialize(opts = {}) ⇒ Client
Returns a new instance of Client.
10 11 12 13 |
# File 'lib/filecoin/client.rb', line 10 def initialize(opts = {}) @uri = initialize_uri(opts) @token = initialize_token(opts) end |
Instance Attribute Details
#token ⇒ Object (readonly)
Returns the value of attribute token.
8 9 10 |
# File 'lib/filecoin/client.rb', line 8 def token @token end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
8 9 10 |
# File 'lib/filecoin/client.rb', line 8 def uri @uri end |