Class: Nis::Struct::Block

Inherits:
Object
  • Object
show all
Includes:
Util::Assignable
Defined in:
lib/nis/struct/block.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Util::Assignable

#[], #initialize, #to_hash, #to_json

Instance Attribute Details

#heightInteger


11
12
13
# File 'lib/nis/struct/block.rb', line 11

def height
  @height
end

#prevBlockHashString Also known as: prev_block_hash


11
12
13
# File 'lib/nis/struct/block.rb', line 11

def prevBlockHash
  @prevBlockHash
end

#signatureString


11
12
13
# File 'lib/nis/struct/block.rb', line 11

def signature
  @signature
end

#signerString


11
12
13
# File 'lib/nis/struct/block.rb', line 11

def signer
  @signer
end

#timeStampInteger Also known as: timestamp


11
12
13
# File 'lib/nis/struct/block.rb', line 11

def timeStamp
  @timeStamp
end

#transactionsArray <Nis::Struct::transaction>


11
12
13
# File 'lib/nis/struct/block.rb', line 11

def transactions
  @transactions
end

#typeInteger


11
12
13
# File 'lib/nis/struct/block.rb', line 11

def type
  @type
end

#versionInteger


11
12
13
# File 'lib/nis/struct/block.rb', line 11

def version
  @version
end

Class Method Details

.build(attrs) ⇒ Object


20
21
22
# File 'lib/nis/struct/block.rb', line 20

def self.build(attrs)
  new(attrs)
end