class Blockchain::StatisticsResponse

Attributes

blocks_size[R]
btc_mined[R]
difficulty[R]
estimated_btc_sent[R]
estimated_transaction_volume_usd[R]
hash_rate[R]
market_price_usd[R]
mined_blocks[R]
miners_revenue_btc[R]
miners_revenue_usd[R]
minutes_between_blocks[R]
next_retarget[R]
number_of_transactions[R]
timestamp[R]
total_blocks[R]
total_btc[R]
total_btc_sent[R]
total_fees_btc[R]
trade_volume_btc[R]
trade_volume_usd[R]

Public Class Methods

new(s) click to toggle source
# File lib/blockchain/statistics.rb, line 72
def initialize(s)
        @trade_volume_btc = s['trade_volume_btc']
        @miners_revenue_usd = s['miners_revenue_usd']
        @btc_mined = s['n_btc_mined']
        @trade_volume_usd = s['trade_volume_usd']
        @difficulty = s['difficulty']
        @minutes_between_blocks = s['minutes_between_blocks']
        @number_of_transactions = s['n_tx']
        @hash_rate = s['hash_rate']
        @timestamp = s['timestamp']
        @mined_blocks = s['n_blocks_mined']
        @blocks_size = s['blocks_size']
        @total_fees_btc = s['total_fees_btc']
        @total_btc_sent = s['total_btc_sent']
        @estimated_btc_sent = s['estimated_btc_sent']
        @total_btc = s['totalbc']
        @total_blocks = s['n_blocks_total']
        @next_retarget = s['nextretarget']
        @estimated_transaction_volume_usd = s['estimated_transaction_volume_usd']
        @miners_revenue_btc = s['miners_revenue_btc']
        @market_price_usd = s['market_price_usd']
end