Class: Nis::Fee::MultisigAggregateModification
- Inherits:
-
Object
- Object
- Nis::Fee::MultisigAggregateModification
- Defined in:
- lib/nis/fee/multisig_aggregation_modification.rb
Instance Method Summary collapse
-
#initialize(transaction) ⇒ MultisigAggregateModification
constructor
A new instance of MultisigAggregateModification.
- #testnet? ⇒ Boolean
-
#to_i ⇒ Integer
Fee in micro XEM.
-
#value ⇒ Integer
Fee in micro XEM.
Constructor Details
#initialize(transaction) ⇒ MultisigAggregateModification
Returns a new instance of MultisigAggregateModification.
3 4 5 |
# File 'lib/nis/fee/multisig_aggregation_modification.rb', line 3 def initialize(transaction) @transaction = transaction end |
Instance Method Details
#testnet? ⇒ Boolean
22 23 24 |
# File 'lib/nis/fee/multisig_aggregation_modification.rb', line 22 def testnet? @transaction.network == :testnet end |
#to_i ⇒ Integer
Returns fee in micro XEM.
17 18 19 |
# File 'lib/nis/fee/multisig_aggregation_modification.rb', line 17 def to_i value.to_i end |
#value ⇒ Integer
Returns fee in micro XEM.
8 9 10 11 12 13 14 |
# File 'lib/nis/fee/multisig_aggregation_modification.rb', line 8 def value if @transaction.minCosignatories == 0 0.5 * 1_000_000 else 0.5 * 1_000_000 end end |