Class: Nis::Transaction::MultisigSignature
- Inherits:
-
Object
- Object
- Nis::Transaction::MultisigSignature
- Includes:
- Mixin::Struct
- Defined in:
- lib/nis/transaction/multisig_signature.rb
Overview
Constant Summary collapse
- TYPE =
4098 (multisig signature transaction)
0x1002
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.
-
#otherAccount ⇒ String
(also: #other_account)
The current value of otherAccount.
-
#otherHash ⇒ String
The current value of otherHash.
-
#signature ⇒ String
The current value of signature.
-
#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(other_hash, other_account, signer, network: :testnet) ⇒ MultisigSignature
constructor
A new instance of MultisigSignature.
-
#other_hash ⇒ String
The current value of otherHash.
-
#other_hash= ⇒ String
The newly set value.
Methods included from Mixin::Struct
Constructor Details
#initialize(other_hash, other_account, signer, network: :testnet) ⇒ MultisigSignature
Returns a new instance of MultisigSignature.
28 29 30 31 32 33 34 35 36 |
# File 'lib/nis/transaction/multisig_signature.rb', line 28 def initialize(other_hash, other_account, signer, network: :testnet) @type = TYPE @network = network @otherHash = { data: other_hash } @otherAccount = other_account @signer = signer @fee = Nis::Fee::Multisig.new(self) end |
Instance Attribute Details
#deadline ⇒ Integer
Returns the current value of deadline.
12 13 14 |
# File 'lib/nis/transaction/multisig_signature.rb', line 12 def deadline @deadline end |
#fee ⇒ Integer
Returns the current value of fee.
12 13 14 |
# File 'lib/nis/transaction/multisig_signature.rb', line 12 def fee @fee end |
#network ⇒ Object
Returns the value of attribute network.
16 17 18 |
# File 'lib/nis/transaction/multisig_signature.rb', line 16 def network @network end |
#otherAccount ⇒ String Also known as: other_account
Returns the current value of otherAccount.
12 13 14 |
# File 'lib/nis/transaction/multisig_signature.rb', line 12 def otherAccount @otherAccount end |
#otherHash ⇒ String
Returns the current value of otherHash.
12 13 14 |
# File 'lib/nis/transaction/multisig_signature.rb', line 12 def otherHash @otherHash end |
#signature ⇒ String
Returns the current value of signature.
12 13 14 |
# File 'lib/nis/transaction/multisig_signature.rb', line 12 def signature @signature end |
#signer ⇒ String
Returns the current value of signer.
12 13 14 |
# File 'lib/nis/transaction/multisig_signature.rb', line 12 def signer @signer end |
#timeStamp ⇒ Integer Also known as: timestamp
Returns the current value of timeStamp.
12 13 14 |
# File 'lib/nis/transaction/multisig_signature.rb', line 12 def timeStamp @timeStamp end |
#type ⇒ Integer
Returns the current value of type.
12 13 14 |
# File 'lib/nis/transaction/multisig_signature.rb', line 12 def type @type end |
#version ⇒ Integer
Returns the current value of version.
12 13 14 |
# File 'lib/nis/transaction/multisig_signature.rb', line 12 def version @version end |
Instance Method Details
#other_hash ⇒ String
Returns the current value of otherHash.
20 21 22 |
# File 'lib/nis/transaction/multisig_signature.rb', line 20 def otherHash @otherHash end |
#other_hash= ⇒ String
Returns the newly set value.
21 22 23 |
# File 'lib/nis/transaction/multisig_signature.rb', line 21 def otherHash=(value) @otherHash = value end |