Class: Nis::Struct::ProvisionNamespaceTransaction
- Inherits:
-
Object
- Object
- Nis::Struct::ProvisionNamespaceTransaction
- Includes:
- Util::Assignable
- Defined in:
- lib/nis/struct/provision_namespace_transaction.rb
Overview
Constant Summary collapse
- TYPE =
8193 (provision namespace transaction)
0x2001- FEE =
20_000_000
Instance Attribute Summary collapse
-
#deadline ⇒ Integer
The current value of deadline.
- #fee ⇒ Integer
-
#newPart ⇒ String
(also: #new_part)
The current value of newPart.
-
#parent ⇒ String
The current value of parent.
-
#rentalFee ⇒ Integer
(also: #rental_fee)
The current value of rentalFee.
-
#rentalFeeSink ⇒ String
(also: #rental_fee_sink)
The current value of rentalFeeSink.
-
#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.
Class Method Summary collapse
Instance Method Summary collapse
- #_version ⇒ Integer
- #calculate_fee ⇒ Integer
- #mainnet? ⇒ Boolean
- #testnet? ⇒ Boolean
- #to_hash ⇒ Object
- #to_hash_old ⇒ Object
Methods included from Util::Assignable
Instance Attribute Details
#deadline ⇒ Integer
Returns the current value of deadline.
14 15 16 |
# File 'lib/nis/struct/provision_namespace_transaction.rb', line 14 def deadline @deadline end |
#fee ⇒ Integer
14 15 16 |
# File 'lib/nis/struct/provision_namespace_transaction.rb', line 14 def fee @fee end |
#newPart ⇒ String Also known as: new_part
Returns the current value of newPart.
14 15 16 |
# File 'lib/nis/struct/provision_namespace_transaction.rb', line 14 def newPart @newPart end |
#parent ⇒ String
Returns the current value of parent.
14 15 16 |
# File 'lib/nis/struct/provision_namespace_transaction.rb', line 14 def parent @parent end |
#rentalFee ⇒ Integer Also known as: rental_fee
Returns the current value of rentalFee.
14 15 16 |
# File 'lib/nis/struct/provision_namespace_transaction.rb', line 14 def rentalFee @rentalFee end |
#rentalFeeSink ⇒ String Also known as: rental_fee_sink
Returns the current value of rentalFeeSink.
14 15 16 |
# File 'lib/nis/struct/provision_namespace_transaction.rb', line 14 def rentalFeeSink @rentalFeeSink end |
#signature ⇒ String
Returns the current value of signature.
14 15 16 |
# File 'lib/nis/struct/provision_namespace_transaction.rb', line 14 def signature @signature end |
#signer ⇒ String
Returns the current value of signer.
14 15 16 |
# File 'lib/nis/struct/provision_namespace_transaction.rb', line 14 def signer @signer end |
#timeStamp ⇒ Integer Also known as: timestamp
Returns the current value of timeStamp.
14 15 16 |
# File 'lib/nis/struct/provision_namespace_transaction.rb', line 14 def timeStamp @timeStamp end |
#type ⇒ Integer
Returns the current value of type.
14 15 16 |
# File 'lib/nis/struct/provision_namespace_transaction.rb', line 14 def type @type end |
#version ⇒ Integer
Returns the current value of version.
14 15 16 |
# File 'lib/nis/struct/provision_namespace_transaction.rb', line 14 def version @version end |
Class Method Details
.build(attrs) ⇒ Object
31 32 33 |
# File 'lib/nis/struct/provision_namespace_transaction.rb', line 31 def self.build(attrs) new(attrs) end |
Instance Method Details
#_version ⇒ Integer
36 37 38 |
# File 'lib/nis/struct/provision_namespace_transaction.rb', line 36 def _version (0xFFFFFFF0 & @version) end |
#calculate_fee ⇒ Integer
63 64 65 |
# File 'lib/nis/struct/provision_namespace_transaction.rb', line 63 def calculate_fee FEE end |
#mainnet? ⇒ Boolean
46 47 48 |
# File 'lib/nis/struct/provision_namespace_transaction.rb', line 46 def mainnet? (0x0000000F & @version) == Nis::Util::MAINNET end |
#testnet? ⇒ Boolean
41 42 43 |
# File 'lib/nis/struct/provision_namespace_transaction.rb', line 41 def testnet? (0x0000000F & @version) == Nis::Util::TESTNET end |
#to_hash ⇒ Object
57 58 59 60 |
# File 'lib/nis/struct/provision_namespace_transaction.rb', line 57 def to_hash fee to_hash_old end |
#to_hash_old ⇒ Object
55 |
# File 'lib/nis/struct/provision_namespace_transaction.rb', line 55 alias to_hash_old to_hash |