class Nem::Model::ExpelorerBlock
Attributes
block[R]
difficulty[R]
hash[R]
txes[R]
Public Class Methods
new_from_explorer_block(hash)
click to toggle source
# File lib/nem/model/explorer_block.rb, line 8 def self.new_from_explorer_block(hash) txes = hash[:txes].map do |tx| Transaction.new_from_account_transaction_meta_data_pair( meta: { hash: { data: tx[:hash] } }, transaction: tx[:tx] ) end new( difficulty: hash[:difficulty], txes: txes, block: Block.new_from_block(hash[:block]), hash: hash[:hash] ) end