class BitShares::Wallet

Attributes

amount[RW]
asset[RW]

Public Class Methods

[](name, *ids) click to toggle source
# File lib/bitshares/wallet.rb, line 10
def [] name, *ids
        RPC.new('get_named_account_balances',[name,ids]).send.inject([]) {|m,a| m << Wallet.new(a) }
end
new(hash) click to toggle source
# File lib/bitshares/wallet.rb, line 4
def initialize hash
        @amount = hash['amount']
        @asset = BitShares::Asset[hash['asset_id']]
end