Class: Dune::Balanced::Creditcard::TransactionAdditionalFeeCalculator

Inherits:
TransactionFeeCalculatorBase show all
Defined in:
app/models/dune/balanced/creditcard/transaction_additional_fee_calculator.rb

Instance Attribute Summary

Attributes inherited from TransactionFeeCalculatorBase

#transaction_value

Instance Method Summary collapse

Methods inherited from TransactionFeeCalculatorBase

#fees, #gross_amount, #initialize

Constructor Details

This class inherits a constructor from Dune::Balanced::Creditcard::TransactionFeeCalculatorBase

Instance Method Details

#net_amountObject



7
8
9
# File 'app/models/dune/balanced/creditcard/transaction_additional_fee_calculator.rb', line 7

def net_amount
  transaction_value.to_f.floor_with_two_decimal_places
end