lib/ipizza/provider.rb in ipizza-2.0.0 vs lib/ipizza/provider.rb in ipizza-2.0.1
- old
+ new
@@ -1,11 +1,11 @@
module Ipizza
module Provider
class << self
def get(provider_name)
- case provider_name.downcase
+ case provider_name.to_s.downcase
when 'lhv'
Ipizza::Provider::Lhv.new
when 'swedbank', 'hp'
Ipizza::Provider::Swedbank.new
when 'eyp', 'seb'
@@ -14,11 +14,9 @@
Ipizza::Provider::Sampo.new
when 'krep', 'krediidipank'
Ipizza::Provider::Krediidipank.new
when 'nordea'
Ipizza::Provider::Nordea.new
- else
- Ipizza::Provider::Base.new
end
end
end
end
end