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


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

def block
  @block
end

#hashString


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

def hash
  @hash
end

#txesArray <Nis::Struct::Transaction>


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