Class: Dune::Balanced::Creditcard::Interface

Inherits:
Object
  • Object
show all
Defined in:
lib/dune/balanced/creditcard/interface.rb

Instance Method Summary collapse

Instance Method Details

#account_pathObject



14
15
16
# File 'lib/dune/balanced/creditcard/interface.rb', line 14

def 
  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

#nameObject



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

#payout_classObject



22
23
24
# File 'lib/dune/balanced/creditcard/interface.rb', line 22

def payout_class
  Dune::Balanced::Payout
end