Class: Nem::Fee::MultisigAggregateModification
- Inherits:
-
Object
- Object
- Nem::Fee::MultisigAggregateModification
- Defined in:
- lib/nem/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.
4 5 6 |
# File 'lib/nem/fee/multisig_aggregation_modification.rb', line 4 def initialize(transaction) @transaction = transaction end |
Instance Method Details
#testnet? ⇒ Boolean
23 24 25 |
# File 'lib/nem/fee/multisig_aggregation_modification.rb', line 23 def testnet? @transaction.network == :testnet end |
#to_i ⇒ Integer
Returns fee in micro XEM.
18 19 20 |
# File 'lib/nem/fee/multisig_aggregation_modification.rb', line 18 def to_i value.to_i end |
#value ⇒ Integer
Returns fee in micro XEM.
9 10 11 12 13 14 15 |
# File 'lib/nem/fee/multisig_aggregation_modification.rb', line 9 def value if @transaction.min_cosignatories == 0 0.5 * 1_000_000 else 0.5 * 1_000_000 end end |