class Nem::Transaction::Multisig
@attr [Nem::Transaction::*] other_trans
@attr [String] signer @see nemproject.github.io/#multisigTransaction
Constants
- TYPE
Attributes
other_trans[R]
signer[R]
Public Class Methods
new(trans, signer, timestamp: nil, deadline: nil, network: nil)
click to toggle source
# File lib/nem/transaction/multisig.rb, line 11 def initialize(trans, signer, timestamp: nil, deadline: nil, network: nil) @other_trans = trans @signer = signer @network = network || Nem.default_network @type = TYPE @fee = Nem::Fee::Multisig.new(self) @timestamp = timestamp || Time.now @deadline = deadline || Time.now + Nem.default_deadline end
Public Instance Methods
to_hash()
click to toggle source
attributes must be CAMEL CASE for NIS params @return [Hash]
# File lib/nem/transaction/multisig.rb, line 24 def to_hash { otherTrans: other_trans.to_hash, signer: signer } end