Class: Nem::Model::MultisigTransaction

Inherits:
Transaction show all
Defined in:
lib/nem/model/multisig_transaction.rb

Instance Attribute Summary collapse

Attributes inherited from Transaction

#deadline, #fee, #hash, #height, #id, #signer, #timestamp, #type, #version

Class Method Summary collapse

Methods inherited from Transaction

new_from_account_transaction, new_from_account_transaction_meta_data_pair

Methods included from Nem::Mixin::Assignable

#initialize

Instance Attribute Details

#other_transObject (readonly)

Returns the value of attribute other_trans.



4
5
6
# File 'lib/nem/model/multisig_transaction.rb', line 4

def other_trans
  @other_trans
end

#signaturesObject (readonly)

Returns the value of attribute signatures.



4
5
6
# File 'lib/nem/model/multisig_transaction.rb', line 4

def signatures
  @signatures
end

Class Method Details

.new_from_transaction_meta_data_pair(hash) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/nem/model/multisig_transaction.rb', line 6

def self.(hash)
  transaction = hash[:transaction]
  signs = transaction[:signatures].map do |sign|
    MultisigSignatureTransaction.new_from_multisig_signature(sign)
  end
  other = transaction[:otherTrans]
  other_trans = (other)
  attrs = (hash).merge(
    signatures: signs,
    other_trans: other_trans
  )
  new(attrs)
end