Sha256: fa282848f4caf35af6bf59aa2c2a92edfd5f25cbe479c8730ea938b3e8e83a70

Contents?: true

Size: 618 Bytes

Versions: 1

Compression:

Stored size: 618 Bytes

Contents

module Ipizza
  module Provider

    class << self
      def get(provider_name)
        case provider_name.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 'nordea'
          Ipizza::Provider::Nordea.new
        else
          Ipizza::Provider::Base.new
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ipizza-2.0.0 lib/ipizza/provider.rb