Class: Bitcoind::AccountHash
- Inherits:
-
Hash
- Object
- Hash
- Bitcoind::AccountHash
- Defined in:
- lib/bitcoind/account_hash.rb
Instance Method Summary collapse
-
#initialize(client, balance_hash) ⇒ AccountHash
constructor
A new instance of AccountHash.
- #new(name) ⇒ Object
Constructor Details
#initialize(client, balance_hash) ⇒ AccountHash
Returns a new instance of AccountHash.
3 4 5 6 7 8 |
# File 'lib/bitcoind/account_hash.rb', line 3 def initialize(client, balance_hash) @client = client balance_hash.each do |name,b| self[name] = Account.new client, name end end |