Class: Nem::Fee::MultisigAggregateModification

Inherits:
Object
  • Object
show all
Defined in:
lib/nem/fee/multisig_aggregation_modification.rb

Instance Method Summary collapse

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

Returns:

  • (Boolean)


23
24
25
# File 'lib/nem/fee/multisig_aggregation_modification.rb', line 23

def testnet?
  @transaction.network == :testnet
end

#to_iInteger

Returns fee in micro XEM.

Returns:

  • (Integer)

    fee in micro XEM



18
19
20
# File 'lib/nem/fee/multisig_aggregation_modification.rb', line 18

def to_i
  value.to_i
end

#valueInteger

Returns fee in micro XEM.

Returns:

  • (Integer)

    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