Sha256: ca9ac54f8bd19ea48bb7a375cdc0f982b5a675baaa705a2ea3b050f2b1e1af65
Contents?: true
Size: 563 Bytes
Versions: 8
Compression:
Stored size: 563 Bytes
Contents
module BitWallet class Address attr_reader :account, :address delegate :wallet, to: :account delegate :client, to: :wallet def initialize(account, address=nil) @account = account @address = if address address else client.getnewaddress(@account.name) end end def total_received client.getreceivedbyaddress(self.address, BitWallet.config.min_conf) end def ==(other_address) self.address == other_address.address end end end
Version data entries
8 entries across 8 versions & 1 rubygems