class CsobPaymentGateway::Configuration
Attributes
close_payment[RW]
currency[RW]
environment[RW]
gateway_url[RW]
keys_directory[RW]
merchant_id[RW]
private_key[RW]
public_key[RW]
return_method_post[RW]
return_url[RW]
statuses[R]
urls[R]
Public Class Methods
new()
click to toggle source
# File lib/csob_payment_gateway/config.rb, line 50 def initialize config = YAML.load_file(File.join(BASE_PATH, "config", "config.yml")) @base = config["base"] @statuses = config["statuses"] @urls = config["urls"] end
Public Instance Methods
base()
click to toggle source
# File lib/csob_payment_gateway/config.rb, line 57 def base env = @environment.nil? ? "test" : @environment.to_s @base[env] end