Class: Nem::Model::MultisigTransaction
- Inherits:
-
Transaction
- Object
- Transaction
- Nem::Model::MultisigTransaction
- Defined in:
- lib/nem/model/multisig_transaction.rb
Instance Attribute Summary collapse
-
#other_trans ⇒ Object
readonly
Returns the value of attribute other_trans.
-
#signatures ⇒ Object
readonly
Returns the value of attribute signatures.
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
Instance Attribute Details
#other_trans ⇒ Object (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 |
#signatures ⇒ Object (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 = new_from_account_transaction(other) attrs = (hash).merge( signatures: signs, other_trans: other_trans ) new(attrs) end |