Class: Nis::Transaction::ProvisionNamespace
- Inherits:
-
Object
- Object
- Nis::Transaction::ProvisionNamespace
- Includes:
- Mixin::Struct
- Defined in:
- lib/nis/transaction/provision_namespace.rb
Overview
Constant Summary collapse
- TYPE =
8193 (provision namespace transaction)
0x2001
Instance Attribute Summary collapse
-
#deadline ⇒ Integer
The current value of deadline.
-
#fee ⇒ Integer
The current value of fee.
-
#network ⇒ Symbol
The current value of network.
-
#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.
Instance Method Summary collapse
-
#initialize(new_part, parent = nil, network: :testnet) ⇒ ProvisionNamespace
constructor
A new instance of ProvisionNamespace.
- #root? ⇒ Boolean
- #sub? ⇒ Boolean
Methods included from Mixin::Struct
Constructor Details
#initialize(new_part, parent = nil, network: :testnet) ⇒ ProvisionNamespace
Returns a new instance of ProvisionNamespace.
33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/nis/transaction/provision_namespace.rb', line 33 def initialize(new_part, parent = nil, network: :testnet) @type = TYPE @network = network @newPart = new_part @parent = parent @rentalFee = rental[:fee] @rentalFeeSink = rental[:sink] @fee = Nis::Fee::ProvisionNamespace.new(self) end |
Instance Attribute Details
#deadline ⇒ Integer
Returns the current value of deadline.
15 16 17 |
# File 'lib/nis/transaction/provision_namespace.rb', line 15 def deadline @deadline end |
#fee ⇒ Integer
Returns the current value of fee.
15 16 17 |
# File 'lib/nis/transaction/provision_namespace.rb', line 15 def fee @fee end |
#network ⇒ Symbol
Returns the current value of network.
15 16 17 |
# File 'lib/nis/transaction/provision_namespace.rb', line 15 def network @network end |
#newPart ⇒ String Also known as: new_part
Returns the current value of newPart.
15 16 17 |
# File 'lib/nis/transaction/provision_namespace.rb', line 15 def newPart @newPart end |
#parent ⇒ String
Returns the current value of parent.
15 16 17 |
# File 'lib/nis/transaction/provision_namespace.rb', line 15 def parent @parent end |
#rentalFee ⇒ Integer Also known as: rental_fee
Returns the current value of rentalFee.
15 16 17 |
# File 'lib/nis/transaction/provision_namespace.rb', line 15 def rentalFee @rentalFee end |
#rentalFeeSink ⇒ String Also known as: rental_fee_sink
Returns the current value of rentalFeeSink.
15 16 17 |
# File 'lib/nis/transaction/provision_namespace.rb', line 15 def rentalFeeSink @rentalFeeSink end |
#signature ⇒ String
Returns the current value of signature.
15 16 17 |
# File 'lib/nis/transaction/provision_namespace.rb', line 15 def signature @signature end |
#signer ⇒ String
Returns the current value of signer.
15 16 17 |
# File 'lib/nis/transaction/provision_namespace.rb', line 15 def signer @signer end |
#timeStamp ⇒ Integer Also known as: timestamp
Returns the current value of timeStamp.
15 16 17 |
# File 'lib/nis/transaction/provision_namespace.rb', line 15 def timeStamp @timeStamp end |
#type ⇒ Integer
Returns the current value of type.
15 16 17 |
# File 'lib/nis/transaction/provision_namespace.rb', line 15 def type @type end |
#version ⇒ Integer
Returns the current value of version.
15 16 17 |
# File 'lib/nis/transaction/provision_namespace.rb', line 15 def version @version end |
Instance Method Details
#root? ⇒ Boolean
45 46 47 |
# File 'lib/nis/transaction/provision_namespace.rb', line 45 def root? !!(@parent == nil) end |
#sub? ⇒ Boolean
49 50 51 |
# File 'lib/nis/transaction/provision_namespace.rb', line 49 def sub? !!(@parent && @newPart) end |