Class: Nis::Transaction::ImportanceTransfer
- Inherits:
-
Object
- Object
- Nis::Transaction::ImportanceTransfer
- Includes:
- Mixin::Struct
- Defined in:
- lib/nis/transaction/importance_transfer.rb
Overview
Constant Summary collapse
- TYPE =
2049 (importance transfer transaction)
0x0801
- ACTIVATE =
0x0001
- DEACTIVATE =
0x0002
Instance Attribute Summary collapse
-
#deadline ⇒ Integer
The current value of deadline.
-
#fee ⇒ Integer
The current value of fee.
-
#mode ⇒ Integer
The current value of mode.
-
#network ⇒ Symbol
The current value of network.
-
#remoteAccount ⇒ String
(also: #remote_account)
The current value of remoteAccount.
-
#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(remote_account, mode, network: :testnet) ⇒ ImportanceTransfer
constructor
A new instance of ImportanceTransfer.
Methods included from Mixin::Struct
Constructor Details
#initialize(remote_account, mode, network: :testnet) ⇒ ImportanceTransfer
Returns a new instance of ImportanceTransfer.
30 31 32 33 34 35 36 37 |
# File 'lib/nis/transaction/importance_transfer.rb', line 30 def initialize(remote_account, mode, network: :testnet) @type = TYPE @network = network @remoteAccount = remote_account @mode = parse_mode(mode) @fee = Nis::Fee::ImportanceTransfer.new(self) end |
Instance Attribute Details
#deadline ⇒ Integer
Returns the current value of deadline.
13 14 15 |
# File 'lib/nis/transaction/importance_transfer.rb', line 13 def deadline @deadline end |
#fee ⇒ Integer
Returns the current value of fee.
13 14 15 |
# File 'lib/nis/transaction/importance_transfer.rb', line 13 def fee @fee end |
#mode ⇒ Integer
Returns the current value of mode.
13 14 15 |
# File 'lib/nis/transaction/importance_transfer.rb', line 13 def mode @mode end |
#network ⇒ Symbol
Returns the current value of network.
13 14 15 |
# File 'lib/nis/transaction/importance_transfer.rb', line 13 def network @network end |
#remoteAccount ⇒ String Also known as: remote_account
Returns the current value of remoteAccount.
13 14 15 |
# File 'lib/nis/transaction/importance_transfer.rb', line 13 def remoteAccount @remoteAccount end |
#signature ⇒ String
Returns the current value of signature.
13 14 15 |
# File 'lib/nis/transaction/importance_transfer.rb', line 13 def signature @signature end |
#signer ⇒ String
Returns the current value of signer.
13 14 15 |
# File 'lib/nis/transaction/importance_transfer.rb', line 13 def signer @signer end |
#timeStamp ⇒ Integer Also known as: timestamp
Returns the current value of timeStamp.
13 14 15 |
# File 'lib/nis/transaction/importance_transfer.rb', line 13 def timeStamp @timeStamp end |
#type ⇒ Integer
Returns the current value of type.
13 14 15 |
# File 'lib/nis/transaction/importance_transfer.rb', line 13 def type @type end |
#version ⇒ Integer
Returns the current value of version.
13 14 15 |
# File 'lib/nis/transaction/importance_transfer.rb', line 13 def version @version end |