Class: Nis::Struct::ExplorerViewModelTransaction

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

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Util::Assignable

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

Instance Attribute Details

#blockString

Returns the current value of block.

Returns:

  • (String)

    the current value of block



6
7
8
# File 'lib/nis/struct/explorer_view_model_transaction.rb', line 6

def block
  @block
end

#hashString

Returns the current value of hash.

Returns:

  • (String)

    the current value of hash



6
7
8
# File 'lib/nis/struct/explorer_view_model_transaction.rb', line 6

def hash
  @hash
end

#txesArray <Nis::Struct::Transaction>

Returns the current value of txes.

Returns:



6
7
8
# File 'lib/nis/struct/explorer_view_model_transaction.rb', line 6

def txes
  @txes
end

Class Method Details

.build(attrs) ⇒ Object



10
11
12
13
14
# File 'lib/nis/struct/explorer_view_model_transaction.rb', line 10

def self.build(attrs)
  attrs[:txes] = attrs[:txes].map { |tx| Transaction.build(tx) }
  attrs[:block] = Block.build(attrs[:block])
  new(attrs)
end