class Blockchain::Address
Attributes
address[R]
final_balance[R]
hash160[R]
n_tx[R]
total_received[R]
total_sent[R]
transactions[R]
Public Class Methods
new(a)
click to toggle source
# File lib/blockchain/blockexplorer.rb, line 228 def initialize(a) @hash160 = a['hash160'] == nil ? nil : a['hash160'] @address = a['address'] @n_tx = a['n_tx'] @total_received = a['total_received'] @total_sent = a['total_sent'] @final_balance = a['final_balance'] @transactions = a['txs'] == nil ? nil : a['txs'].map{ |tx| Transaction.new(tx) } end