Class: Nem::Model::MultisigSignatureTransaction

Inherits:
Transaction
  • Object
show all
Includes:
Nem::Mixin::Assignable
Defined in:
lib/nem/model/multisig_signature_transaction.rb

Instance Attribute Summary collapse

Attributes inherited from Transaction

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

Class Method Summary collapse

Methods included from Nem::Mixin::Assignable

#initialize

Methods inherited from Transaction

new_from_account_transaction, new_from_account_transaction_meta_data_pair

Instance Attribute Details

#other_accountObject (readonly)

Returns the value of attribute other_account.



6
7
8
# File 'lib/nem/model/multisig_signature_transaction.rb', line 6

def 
  @other_account
end

#other_hashObject (readonly)

Returns the value of attribute other_hash.



6
7
8
# File 'lib/nem/model/multisig_signature_transaction.rb', line 6

def other_hash
  @other_hash
end

Class Method Details

.new_from_multisig_signature(hash) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/nem/model/multisig_signature_transaction.rb', line 8

def self.new_from_multisig_signature(hash)
  attrs = common_part(hash).merge(
    other_hash: hash[:otherHash][:data],
    other_account: hash[:otherAccount]
  )
  new(attrs)
end