Class: Nem::Fee::MosaicDefinitionCreation
- Inherits:
-
Object
- Object
- Nem::Fee::MosaicDefinitionCreation
- Defined in:
- lib/nem/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.
4 5 6 |
# File 'lib/nem/fee/mosaic_definition_creation.rb', line 4 def initialize(transaction) @transaction = transaction end |
Instance Method Details
#testnet? ⇒ Boolean
19 20 21 |
# File 'lib/nem/fee/mosaic_definition_creation.rb', line 19 def testnet? @transaction.network == :testnet end |
#to_i ⇒ Integer
Returns fee in micro XEM.
14 15 16 |
# File 'lib/nem/fee/mosaic_definition_creation.rb', line 14 def to_i value.to_i end |
#value ⇒ Integer
Returns fee in micro XEM.
9 10 11 |
# File 'lib/nem/fee/mosaic_definition_creation.rb', line 9 def value 10 * 1_000_000 end |