Class: Nis::Transaction::Multisig
- Inherits:
-
Object
- Object
- Nis::Transaction::Multisig
- Includes:
- Mixin::Struct
- Defined in:
- lib/nis/transaction/multisig.rb
Overview
Constant Summary collapse
- TYPE =
4100 (multisig transaction)
0x1004
Instance Attribute Summary collapse
-
#deadline ⇒ Integer
The current value of deadline.
-
#fee ⇒ Integer
The current value of fee.
-
#network ⇒ Object
Returns the value of attribute network.
-
#otherTrans ⇒ Nis::Transaction::*
(also: #other_trans)
The current value of otherTrans.
-
#signer ⇒ String
The current value of signer.
-
#timeStamp ⇒ Integer
(also: #timestamp)
The current value of timeStamp.
-
#type ⇒ Integer
The current value of type.
-
#version ⇒ Integer
The current value of version.
Instance Method Summary collapse
-
#initialize(tx, signer, network: :testnet) ⇒ Multisig
constructor
A new instance of Multisig.
Methods included from Mixin::Struct
Constructor Details
#initialize(tx, signer, network: :testnet) ⇒ Multisig
Returns a new instance of Multisig.
24 25 26 27 28 29 30 31 |
# File 'lib/nis/transaction/multisig.rb', line 24 def initialize(tx, signer, network: :testnet) @type = TYPE @network = network @otherTrans = tx @signer = signer @fee = Nis::Fee::Multisig.new(self) end |
Instance Attribute Details
#deadline ⇒ Integer
Returns the current value of deadline.
10 11 12 |
# File 'lib/nis/transaction/multisig.rb', line 10 def deadline @deadline end |
#fee ⇒ Integer
Returns the current value of fee.
10 11 12 |
# File 'lib/nis/transaction/multisig.rb', line 10 def fee @fee end |
#network ⇒ Object
Returns the value of attribute network.
14 15 16 |
# File 'lib/nis/transaction/multisig.rb', line 14 def network @network end |
#otherTrans ⇒ Nis::Transaction::* Also known as: other_trans
Returns the current value of otherTrans.
10 11 12 |
# File 'lib/nis/transaction/multisig.rb', line 10 def otherTrans @otherTrans end |
#signer ⇒ String
Returns the current value of signer.
10 11 12 |
# File 'lib/nis/transaction/multisig.rb', line 10 def signer @signer end |
#timeStamp ⇒ Integer Also known as: timestamp
Returns the current value of timeStamp.
10 11 12 |
# File 'lib/nis/transaction/multisig.rb', line 10 def timeStamp @timeStamp end |
#type ⇒ Integer
Returns the current value of type.
10 11 12 |
# File 'lib/nis/transaction/multisig.rb', line 10 def type @type end |
#version ⇒ Integer
Returns the current value of version.
10 11 12 |
# File 'lib/nis/transaction/multisig.rb', line 10 def version @version end |