Class: Nem::Fee::ImportanceTransfer
- Inherits:
-
Object
- Object
- Nem::Fee::ImportanceTransfer
- Defined in:
- lib/nem/fee/importance_transfer.rb
Instance Method Summary collapse
-
#initialize(transaction) ⇒ ImportanceTransfer
constructor
A new instance of ImportanceTransfer.
- #testnet? ⇒ Boolean
-
#to_i ⇒ Integer
Fee in micro XEM.
-
#value ⇒ Integer
Fee in micro XEM.
Constructor Details
#initialize(transaction) ⇒ ImportanceTransfer
Returns a new instance of ImportanceTransfer.
4 5 6 |
# File 'lib/nem/fee/importance_transfer.rb', line 4 def initialize(transaction) @transaction = transaction end |
Instance Method Details
#testnet? ⇒ Boolean
19 20 21 |
# File 'lib/nem/fee/importance_transfer.rb', line 19 def testnet? @transaction.network == :testnet end |
#to_i ⇒ Integer
Returns fee in micro XEM.
14 15 16 |
# File 'lib/nem/fee/importance_transfer.rb', line 14 def to_i value.to_i end |
#value ⇒ Integer
Returns fee in micro XEM.
9 10 11 |
# File 'lib/nem/fee/importance_transfer.rb', line 9 def value 0.15 * 1_000_000 end |