Class: Nis::Transaction::MosaicSupplyChange
- Inherits:
-
Object
- Object
- Nis::Transaction::MosaicSupplyChange
- Includes:
- Mixin::Struct
- Defined in:
- lib/nis/transaction/mosaic_supply_change.rb
Overview
Constant Summary collapse
- TYPE =
16386 (mosaic supply change transaction)
0x4002
- INCREASE =
0x0001
- DECREASE =
0x0002
Instance Attribute Summary collapse
-
#deadline ⇒ Integer
The current value of deadline.
-
#delta ⇒ Integer
The current value of delta.
-
#fee ⇒ Integer
The current value of fee.
-
#mosaic_id ⇒ Nis::Struct::MosaicId
The current value of mosaic_id.
-
#mosaicId ⇒ Object
(also: #mosaid_id)
Returns the value of attribute mosaicId.
-
#network ⇒ Symbol
The current value of network.
-
#signature ⇒ String
The current value of signature.
-
#signer ⇒ String
The current value of signer.
-
#supplyType ⇒ Symbol
(also: #supply_type)
The current value of supplyType.
-
#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(mosaic_id, type, delta, network: :testnet) ⇒ MosaicSupplyChange
constructor
A new instance of MosaicSupplyChange.
Methods included from Mixin::Struct
Constructor Details
#initialize(mosaic_id, type, delta, network: :testnet) ⇒ MosaicSupplyChange
Returns a new instance of MosaicSupplyChange.
33 34 35 36 37 38 39 40 41 |
# File 'lib/nis/transaction/mosaic_supply_change.rb', line 33 def initialize(mosaic_id, type, delta, network: :testnet) @type = TYPE @network = network @mosaicId = mosaic_id @supplyType = parse_type(type) @delta = delta @fee = Nis::Fee::MosaicSupplyChangeTransfer.new(self) end |
Instance Attribute Details
#deadline ⇒ Integer
Returns the current value of deadline.
14 15 16 |
# File 'lib/nis/transaction/mosaic_supply_change.rb', line 14 def deadline @deadline end |
#delta ⇒ Integer
Returns the current value of delta.
14 15 16 |
# File 'lib/nis/transaction/mosaic_supply_change.rb', line 14 def delta @delta end |
#fee ⇒ Integer
Returns the current value of fee.
14 15 16 |
# File 'lib/nis/transaction/mosaic_supply_change.rb', line 14 def fee @fee end |
#mosaic_id ⇒ Nis::Struct::MosaicId
Returns the current value of mosaic_id.
14 15 16 |
# File 'lib/nis/transaction/mosaic_supply_change.rb', line 14 def mosaic_id @mosaic_id end |
#mosaicId ⇒ Object Also known as: mosaid_id
Returns the value of attribute mosaicId.
18 19 20 |
# File 'lib/nis/transaction/mosaic_supply_change.rb', line 18 def mosaicId @mosaicId end |
#network ⇒ Symbol
Returns the current value of network.
14 15 16 |
# File 'lib/nis/transaction/mosaic_supply_change.rb', line 14 def network @network end |
#signature ⇒ String
Returns the current value of signature.
14 15 16 |
# File 'lib/nis/transaction/mosaic_supply_change.rb', line 14 def signature @signature end |
#signer ⇒ String
Returns the current value of signer.
14 15 16 |
# File 'lib/nis/transaction/mosaic_supply_change.rb', line 14 def signer @signer end |
#supplyType ⇒ Symbol Also known as: supply_type
Returns the current value of supplyType.
14 15 16 |
# File 'lib/nis/transaction/mosaic_supply_change.rb', line 14 def supplyType @supplyType end |
#timeStamp ⇒ Integer Also known as: timestamp
Returns the current value of timeStamp.
14 15 16 |
# File 'lib/nis/transaction/mosaic_supply_change.rb', line 14 def timeStamp @timeStamp end |
#type ⇒ Integer
Returns the current value of type.
14 15 16 |
# File 'lib/nis/transaction/mosaic_supply_change.rb', line 14 def type @type end |
#version ⇒ Integer
Returns the current value of version.
14 15 16 |
# File 'lib/nis/transaction/mosaic_supply_change.rb', line 14 def version @version end |