class Nis::Struct::Block
@attr [Integer] timeStamp @attr [String] signature @attr [String] prevBlockHash @attr [Integer] type @attr [Array <Nis::Struct::transaction>] transactions @attr [Integer] version @attr [String] signer @attr [Integer] height @see nemproject.github.io/#block
Attributes
height[RW]
prevBlockHash[RW]
prev_block_hash[RW]
prev_block_hash=[RW]
signature[RW]
signer[RW]
timeStamp[RW]
timestamp[RW]
timestamp=[RW]
transactions[RW]
type[RW]
version[RW]
Public Class Methods
build(attrs)
click to toggle source
# File lib/nis/struct/block.rb, line 20 def self.build(attrs) attrs[:transactions] = attrs[:transactions].map { |tx| Transaction.build(tx) } new(attrs) end