Class: Nis::Struct::ImportanceTransferTransaction

Inherits:
Object
  • Object
show all
Includes:
Util::Assignable
Defined in:
lib/nis/struct/importance_transfer_transaction.rb

Overview

Constant Summary collapse

TYPE =

2049 (importance transfer transaction)

0x0801
ACTIVATE =
0x0001
DEACTIVATE =
0x0002

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Util::Assignable

#[], #initialize, #to_hash, #to_json

Instance Attribute Details

#deadlineInteger

Returns the current value of deadline.

Returns:

  • the current value of deadline



12
13
14
# File 'lib/nis/struct/importance_transfer_transaction.rb', line 12

def deadline
  @deadline
end

#feeInteger

Returns the current value of fee.

Returns:

  • the current value of fee



12
13
14
# File 'lib/nis/struct/importance_transfer_transaction.rb', line 12

def fee
  @fee
end

#modeInteger

Returns the current value of mode.

Returns:

  • the current value of mode



12
13
14
# File 'lib/nis/struct/importance_transfer_transaction.rb', line 12

def mode
  @mode
end

#remoteAccountString Also known as: remote_account

Returns the current value of remoteAccount.

Returns:

  • the current value of remoteAccount



12
13
14
# File 'lib/nis/struct/importance_transfer_transaction.rb', line 12

def remoteAccount
  @remoteAccount
end

#signatureString

Returns the current value of signature.

Returns:

  • the current value of signature



12
13
14
# File 'lib/nis/struct/importance_transfer_transaction.rb', line 12

def signature
  @signature
end

#signerString

Returns the current value of signer.

Returns:

  • the current value of signer



12
13
14
# File 'lib/nis/struct/importance_transfer_transaction.rb', line 12

def signer
  @signer
end

#timeStampInteger Also known as: timestamp

Returns the current value of timeStamp.

Returns:

  • the current value of timeStamp



12
13
14
# File 'lib/nis/struct/importance_transfer_transaction.rb', line 12

def timeStamp
  @timeStamp
end

#typeInteger

Returns the current value of type.

Returns:

  • the current value of type



12
13
14
# File 'lib/nis/struct/importance_transfer_transaction.rb', line 12

def type
  @type
end

#versionInteger

Returns the current value of version.

Returns:

  • the current value of version



12
13
14
# File 'lib/nis/struct/importance_transfer_transaction.rb', line 12

def version
  @version
end

Class Method Details

.build(attrs) ⇒ Object



26
27
28
# File 'lib/nis/struct/importance_transfer_transaction.rb', line 26

def self.build(attrs)
  new(attrs)
end

Instance Method Details

#_versionInteger

Returns:



31
32
33
# File 'lib/nis/struct/importance_transfer_transaction.rb', line 31

def _version
  (0xFFFFFFF0 & @version)
end

#mainnet?Boolean

Returns:



41
42
43
# File 'lib/nis/struct/importance_transfer_transaction.rb', line 41

def mainnet?
  (0x0000000F & @version) == Nis::Util::MAINNET
end

#testnet?Boolean

Returns:



36
37
38
# File 'lib/nis/struct/importance_transfer_transaction.rb', line 36

def testnet?
  (0x0000000F & @version) == Nis::Util::TESTNET
end