Sha256: b421d078dc663566741ea41eaeb8ef950036950ad0224921853946ff6d245546
Contents?: true
Size: 323 Bytes
Versions: 1
Compression:
Stored size: 323 Bytes
Contents
module BitShares class Wallet attr_accessor :amount, :asset def initialize hash @amount = hash['amount'] @asset = BitShares::Asset[hash['asset_id']] end class << self def [] name, *ids RPC.new('get_named_account_balances',[name,ids]).send.inject([]) {|m,a| m << Wallet.new(a) } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bitsharesws-0.0.4 | lib/bitshares/wallet.rb |