Module: Ipizza::Provider

Defined in:
lib/ipizza/provider.rb,
lib/ipizza/provider/lhv.rb,
lib/ipizza/provider/seb.rb,
lib/ipizza/provider/base.rb,
lib/ipizza/provider/sampo.rb,
lib/ipizza/provider/nordea.rb,
lib/ipizza/provider/luminor.rb,
lib/ipizza/provider/swedbank.rb,
lib/ipizza/provider/krediidipank.rb,
lib/ipizza/provider/nordea/payment_request.rb,
lib/ipizza/provider/nordea/payment_response.rb,
lib/ipizza/provider/nordea/authentication_request.rb,
lib/ipizza/provider/nordea/authentication_response.rb

Defined Under Namespace

Classes: Base, Krediidipank, Lhv, Luminor, Nordea, Sampo, Seb, Swedbank

Class Method Summary collapse

Class Method Details

.get(provider_name) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/ipizza/provider.rb', line 5

def get(provider_name)
  case provider_name.to_s.downcase
  when 'lhv'
    Ipizza::Provider::Lhv.new
  when 'swedbank', 'hp'
    Ipizza::Provider::Swedbank.new
  when 'eyp', 'seb'
    Ipizza::Provider::Seb.new
  when 'sampo', 'sampopank', 'danske'
    Ipizza::Provider::Sampo.new
  when 'krep', 'krediidipank'
    Ipizza::Provider::Krediidipank.new
  when 'luminor', 'testluminor'
    Ipizza::Provider::Luminor.new
  end
end