Class: Nem::Transaction::MultisigSignature
- Defined in:
- lib/nem/transaction/multisig_signature.rb
Constant Summary collapse
- TYPE =
4098 (multisig signature transaction)
0x1002
Constants inherited from Base
Instance Attribute Summary collapse
-
#other_account ⇒ String
The current value of other_account.
-
#other_hash ⇒ String
The current value of other_hash.
-
#signer ⇒ String
The current value of signer.
Attributes inherited from Base
#deadline, #fee, #signature, #timestamp, #type
Instance Method Summary collapse
-
#initialize(other_hash, other_account, signer, timestamp: nil, deadline: nil, network: nil) ⇒ MultisigSignature
constructor
A new instance of MultisigSignature.
-
#to_hash ⇒ Hash
attributes must be CAMEL CASE for NIS params.
Methods inherited from Base
Constructor Details
#initialize(other_hash, other_account, signer, timestamp: nil, deadline: nil, network: nil) ⇒ MultisigSignature
Returns a new instance of MultisigSignature.
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/nem/transaction/multisig_signature.rb', line 11 def initialize(other_hash, other_account, signer, timestamp: nil, deadline: nil, network: nil) @other_hash = other_hash @other_account = other_account @signer = signer @network = network || Nem.default_network @type = TYPE @fee = Nem::Fee::Multisig.new(self) @timestamp = || Time.now @deadline = deadline || Time.now + Nem.default_deadline end |
Instance Attribute Details
#other_account ⇒ String
Returns the current value of other_account.
6 7 8 |
# File 'lib/nem/transaction/multisig_signature.rb', line 6 def other_account @other_account end |
#other_hash ⇒ String
Returns the current value of other_hash.
6 7 8 |
# File 'lib/nem/transaction/multisig_signature.rb', line 6 def other_hash @other_hash end |
#signer ⇒ String
Returns the current value of signer.
6 7 8 |
# File 'lib/nem/transaction/multisig_signature.rb', line 6 def signer @signer end |
Instance Method Details
#to_hash ⇒ Hash
attributes must be CAMEL CASE for NIS params
25 26 27 28 29 30 31 |
# File 'lib/nem/transaction/multisig_signature.rb', line 25 def to_hash { otherHash: { data: other_hash }, otherAccount: other_account, signer: signer } end |