Class: NanoRpc::Wallet
- Inherits:
-
Object
- Object
- NanoRpc::Wallet
- Includes:
- Proxy, WalletHelper
- Defined in:
- lib/nano_rpc/proxies/wallet.rb
Instance Attribute Summary collapse
-
#seed ⇒ Object
readonly
Returns the value of attribute seed.
Attributes included from Proxy
Instance Method Summary collapse
-
#initialize(seed = nil, opts = {}) ⇒ Wallet
constructor
A new instance of Wallet.
-
#inspect ⇒ Object
Hide secret seed on object inspection.
Methods included from WalletHelper
#account_work, #account_work_set, #accounts, #add_key, #add_watch, #balance, #balances, #begin_payment, #change_password, #change_seed, #contains?, #create_account, #create_accounts, #destroy, #enter_password, #export, #frontiers, #init_payment, #ledger, #locked?, #move_accounts, #password_valid?, #pending_balance, #pending_balances, #pending_blocks, #receive_block, #remove_account, #representative, #representative_set, #republish, #send_nano, #work
Methods included from Proxy
Constructor Details
#initialize(seed = nil, opts = {}) ⇒ Wallet
Returns a new instance of Wallet.
8 9 10 11 12 13 14 15 16 |
# File 'lib/nano_rpc/proxies/wallet.rb', line 8 def initialize(seed = nil, opts = {}) unless seed.is_a?(String) raise NanoRpc::MissingParameters, 'Missing argument: seed (str)' end @seed = seed super(opts) end |
Instance Attribute Details
#seed ⇒ Object (readonly)
Returns the value of attribute seed.
6 7 8 |
# File 'lib/nano_rpc/proxies/wallet.rb', line 6 def seed @seed end |
Instance Method Details
#inspect ⇒ Object
Hide secret seed on object inspection
19 20 21 |
# File 'lib/nano_rpc/proxies/wallet.rb', line 19 def inspect "#{inspect_prefix}, @node=#{@node.inspect}>" end |