Sha256: e66cf37c8ffabe8546e544778a1bd2400a575cf38a0e7e2744d7faada38de239
Contents?: true
Size: 685 Bytes
Versions: 1
Compression:
Stored size: 685 Bytes
Contents
module Gestpay class Configuration CURRENCY_MAPPING = { 'EUR' => '242', 'ITL' => '18', 'BRL' => '234', 'USD' => '1', 'JPY' => '71', 'HKD' => '103' } LANGUAGE_MAPPING = { 'ITA' => '1' } attr_accessor :environment, :account, :currency, :language, :proxy def initialize @environment = ENV['GESTPAY_ENVIRONMENT'] || :test @account = ENV['GESTPAY_ACCOUNT'] @currency = 'EUR' @language = 'ITA' @proxy = ENV['GESTPAY_PROXY'] end def currency_code CURRENCY_MAPPING[@currency] end def language_code LANGUAGE_MAPPING[@language] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gestpay-0.1.0 | lib/gestpay/configuration.rb |