Sha256: f6bbbb8a3861af2d902af991ba34e2e79f338f1976bd589a29538279fa36e020
Contents?: true
Size: 820 Bytes
Versions: 1
Compression:
Stored size: 820 Bytes
Contents
require 'net/http' require 'uri' require 'nanook/account' require 'nanook/block' require 'nanook/error' require 'nanook/key' require 'nanook/node' require 'nanook/rpc' require 'nanook/util' require 'nanook/version' require 'nanook/wallet_account' require 'nanook/wallet' require 'nanook/work_peer' class Nanook def initialize(uri=Nanook::Rpc::DEFAULT_URI, timeout:Nanook::Rpc::DEFAULT_URI) @rpc = Nanook::Rpc.new(uri, timeout: timeout) end def account(account=nil) Nanook::Account.new(account, @rpc) end def block(block=nil) Nanook::Block.new(block, @rpc) end def key(key=nil) Nanook::Key.new(key, @rpc) end def node Nanook::Node.new(@rpc) end def wallet(wallet=nil) Nanook::Wallet.new(wallet, @rpc) end def work_peers Nanook::WorkPeer.new(@rpc) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nanook-0.6.0 | lib/nanook.rb |