class Gestpay::Configuration
Constants
- CURRENCY_MAPPING
- LANGUAGE_MAPPING
Attributes
account[RW]
currency[RW]
environment[RW]
language[RW]
proxy[RW]
Public Class Methods
new()
click to toggle source
# File lib/gestpay/configuration.rb, line 18 def initialize @environment = ENV['GESTPAY_ENVIRONMENT'] || :test @account = ENV['GESTPAY_ACCOUNT'] @currency = 'EUR' @language = 'ITA' @proxy = ENV['GESTPAY_PROXY'] end
Public Instance Methods
currency_code()
click to toggle source
# File lib/gestpay/configuration.rb, line 26 def currency_code CURRENCY_MAPPING[@currency] end
language_code()
click to toggle source
# File lib/gestpay/configuration.rb, line 30 def language_code LANGUAGE_MAPPING[@language] end