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