Class: Nis::Fee::MosaicDefinitionCreation
- Inherits:
-
Object
- Object
- Nis::Fee::MosaicDefinitionCreation
- Defined in:
- lib/nis/fee/mosaic_definition_creation.rb
Instance Method Summary collapse
-
#initialize(transaction) ⇒ MosaicDefinitionCreation
constructor
A new instance of MosaicDefinitionCreation.
- #testnet? ⇒ Boolean
-
#to_i ⇒ Integer
Fee in micro XEM.
-
#value ⇒ Integer
Fee in micro XEM.
Constructor Details
#initialize(transaction) ⇒ MosaicDefinitionCreation
Returns a new instance of MosaicDefinitionCreation.
3 4 5 |
# File 'lib/nis/fee/mosaic_definition_creation.rb', line 3 def initialize(transaction) @transaction = transaction end |
Instance Method Details
#testnet? ⇒ Boolean
18 19 20 |
# File 'lib/nis/fee/mosaic_definition_creation.rb', line 18 def testnet? @transaction.network == :testnet end |
#to_i ⇒ Integer
Returns fee in micro XEM.
13 14 15 |
# File 'lib/nis/fee/mosaic_definition_creation.rb', line 13 def to_i value.to_i end |
#value ⇒ Integer
Returns fee in micro XEM.
8 9 10 |
# File 'lib/nis/fee/mosaic_definition_creation.rb', line 8 def value 10 * 1_000_000 end |