class Nis::Struct::ExplorerBlockViewModel
@attr [Array <Nis::Struct::ExplorerTransferViewModel>] txes @attr [Nis::Struct::Block] block @attr [String] hash @attr [String] difficulty @see nemproject.github.io/#explorerBlockViewModel
Attributes
block[RW]
difficulty[RW]
hash[RW]
txes[RW]
Public Class Methods
build(attrs)
click to toggle source
# File lib/nis/struct/explorer_block_view_model.rb, line 11 def self.build(attrs) attrs[:txes] = attrs[:txes].map { |tx| ExplorerTransferViewModel.build(tx) } attrs[:block] = Block.build(attrs[:block]) new(attrs) end