lib/bitshares/account.rb in bitsharesws-0.0.3 vs lib/bitshares/account.rb in bitsharesws-0.0.4
- old
+ new
@@ -7,7 +7,17 @@
@name = h['name']
@hash = h
end
def to_s() @name end
+
+ def balance *ids
+ Wallet[@name,*ids]
+ end
+
+ class << self
+ def [] name
+ new RPC.new('get_account_by_name',[name]).send
+ end
+ end
end
end