Class: Nis::Transaction::ImportanceTransfer

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Mixin::Struct

#[], #to_hash, #to_json

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(, mode, network: :testnet)
  @type = TYPE
  @network = network

  @remoteAccount = 
  @mode = parse_mode(mode)
  @fee = Nis::Fee::ImportanceTransfer.new(self)
end

Instance Attribute Details

#deadlineInteger

Returns the current value of deadline.

Returns:

  • (Integer)

    the current value of deadline



13
14
15
# File 'lib/nis/transaction/importance_transfer.rb', line 13

def deadline
  @deadline
end

#feeInteger

Returns the current value of fee.

Returns:

  • (Integer)

    the current value of fee



13
14
15
# File 'lib/nis/transaction/importance_transfer.rb', line 13

def fee
  @fee
end

#modeInteger

Returns the current value of mode.

Returns:

  • (Integer)

    the current value of mode



13
14
15
# File 'lib/nis/transaction/importance_transfer.rb', line 13

def mode
  @mode
end

#networkSymbol

Returns the current value of network.

Returns:

  • (Symbol)

    the current value of network



13
14
15
# File 'lib/nis/transaction/importance_transfer.rb', line 13

def network
  @network
end

#remoteAccountString Also known as: remote_account

Returns the current value of remoteAccount.

Returns:

  • (String)

    the current value of remoteAccount



13
14
15
# File 'lib/nis/transaction/importance_transfer.rb', line 13

def remoteAccount
  @remoteAccount
end

#signatureString

Returns the current value of signature.

Returns:

  • (String)

    the current value of signature



13
14
15
# File 'lib/nis/transaction/importance_transfer.rb', line 13

def signature
  @signature
end

#signerString

Returns the current value of signer.

Returns:

  • (String)

    the current value of signer



13
14
15
# File 'lib/nis/transaction/importance_transfer.rb', line 13

def signer
  @signer
end

#timeStampInteger Also known as: timestamp

Returns the current value of timeStamp.

Returns:

  • (Integer)

    the current value of timeStamp



13
14
15
# File 'lib/nis/transaction/importance_transfer.rb', line 13

def timeStamp
  @timeStamp
end

#typeInteger

Returns the current value of type.

Returns:

  • (Integer)

    the current value of type



13
14
15
# File 'lib/nis/transaction/importance_transfer.rb', line 13

def type
  @type
end

#versionInteger

Returns the current value of version.

Returns:

  • (Integer)

    the current value of version



13
14
15
# File 'lib/nis/transaction/importance_transfer.rb', line 13

def version
  @version
end