Class: Nis::Fee::Multisig
- Inherits:
-
Object
- Object
- Nis::Fee::Multisig
- Defined in:
- lib/nis/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.
3 4 5 |
# File 'lib/nis/fee/multisig.rb', line 3 def initialize(transaction) @transaction = transaction end |
Instance Method Details
#testnet? ⇒ Boolean
18 19 20 |
# File 'lib/nis/fee/multisig.rb', line 18 def testnet? @transaction.network == :testnet end |
#to_i ⇒ Integer
Returns fee in micro XEM.
13 14 15 |
# File 'lib/nis/fee/multisig.rb', line 13 def to_i value.to_i end |
#value ⇒ Integer
Returns fee in micro XEM.
8 9 10 |
# File 'lib/nis/fee/multisig.rb', line 8 def value 0.15 * 1_000_000 end |