class Nis::Transaction::ImportanceTransfer
@attr [String] remoteAccount @attr [Integer] mode @attr [Integer] type @attr [Integer] fee @attr [Integer] deadline @attr [Integer] timeStamp @attr [Integer] version @attr [String] signer @attr [String] signature @attr [Symbol] network @see nemproject.github.io/#importanceTransferTransaction
Constants
- ACTIVATE
- DEACTIVATE
- TYPE
Attributes
deadline[RW]
fee[R]
mode[RW]
network[RW]
remoteAccount[RW]
remote_account[RW]
remote_account=[RW]
signature[RW]
signer[RW]
timeStamp[RW]
timestamp[RW]
type[R]
version[RW]
Public Class Methods
new(remote_account, mode, network: :testnet)
click to toggle source
# 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
Private Instance Methods
parse_mode(mode)
click to toggle source
# File lib/nis/transaction/importance_transfer.rb, line 41 def parse_mode(mode) case mode when :activate then ACTIVATE when :deactivate then DEACTIVATE else raise "Not implemented mode: #{mode}" end end