class Nem::Fee::ProvisionNamespace

Public Class Methods

new(transaction) click to toggle source
# File lib/nem/fee/provision_namespace.rb, line 4
def initialize(transaction)
  @transaction = transaction
end

Public Instance Methods

testnet?() click to toggle source

@return [Boolean]

# File lib/nem/fee/provision_namespace.rb, line 19
def testnet?
  @transaction.network == :testnet
end
to_i() click to toggle source

@return [Integer] fee in micro XEM

# File lib/nem/fee/provision_namespace.rb, line 14
def to_i
  value.to_i
end
value() click to toggle source

@return [Integer] fee in micro XEM

# File lib/nem/fee/provision_namespace.rb, line 9
def value
  @transaction.root? ? root_fee : sub_fee
end

Private Instance Methods

root_fee() click to toggle source
# File lib/nem/fee/provision_namespace.rb, line 25
def root_fee
  0.15 * 1_000_000
end
sub_fee() click to toggle source
# File lib/nem/fee/provision_namespace.rb, line 29
def sub_fee
  0.15 * 1_000_000
end