Class: Dune::Balanced::Creditcard::Interface
- Inherits:
-
Object
- Object
- Dune::Balanced::Creditcard::Interface
- Defined in:
- lib/dune/balanced/creditcard/interface.rb
Instance Method Summary collapse
- #account_path ⇒ Object
- #fee_calculator(value) ⇒ Object
- #name ⇒ Object
- #payment_path(resource) ⇒ Object
- #payout_class ⇒ Object
Instance Method Details
#account_path ⇒ Object
14 15 16 |
# File 'lib/dune/balanced/creditcard/interface.rb', line 14 def account_path false end |
#fee_calculator(value) ⇒ Object
18 19 20 |
# File 'lib/dune/balanced/creditcard/interface.rb', line 18 def fee_calculator(value) TransactionAdditionalFeeCalculator.new(value) end |
#name ⇒ Object
4 5 6 |
# File 'lib/dune/balanced/creditcard/interface.rb', line 4 def name 'balanced-creditcard' end |
#payment_path(resource) ⇒ Object
8 9 10 11 12 |
# File 'lib/dune/balanced/creditcard/interface.rb', line 8 def payment_path(resource) key = "#{ActiveModel::Naming.param_key(resource)}_id" Dune::Balanced::Creditcard::Engine. routes.url_helpers.new_payment_path(key => resource) end |