Class: PayWithExtend::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/pay_with_extend/configuration.rb

Defined Under Namespace

Classes: EnvironmentMismatch

Constant Summary collapse

ENVIRONMENT_MAP =
{
  "production" => "https://api.paywithextend.com",
  "development" => "https://api.paywithextend.com",
  "staging" => "https://api.paywithextend.com",
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



13
14
15
16
17
18
19
20
21
# File 'lib/pay_with_extend/configuration.rb', line 13

def initialize
  @environment = "production"
  @base_url = ENVIRONMENT_MAP[@environment]
  @secure_base_url = "https://v.paywithextend.com"
  @api_key = ""
  @account_email = ""
  @account_password = ""
  @api_version = ""
end

Instance Attribute Details

#account_emailObject

Returns the value of attribute account_email.



5
6
7
# File 'lib/pay_with_extend/configuration.rb', line 5

def 
  @account_email
end

#account_passwordObject

Returns the value of attribute account_password.



5
6
7
# File 'lib/pay_with_extend/configuration.rb', line 5

def 
  @account_password
end

#api_keyObject

Returns the value of attribute api_key.



5
6
7
# File 'lib/pay_with_extend/configuration.rb', line 5

def api_key
  @api_key
end

#api_versionObject

Returns the value of attribute api_version.



5
6
7
# File 'lib/pay_with_extend/configuration.rb', line 5

def api_version
  @api_version
end

#base_urlObject

Returns the value of attribute base_url.



5
6
7
# File 'lib/pay_with_extend/configuration.rb', line 5

def base_url
  @base_url
end

#environmentObject

Returns the value of attribute environment.



5
6
7
# File 'lib/pay_with_extend/configuration.rb', line 5

def environment
  @environment
end

#secure_base_urlObject

Returns the value of attribute secure_base_url.



5
6
7
# File 'lib/pay_with_extend/configuration.rb', line 5

def secure_base_url
  @secure_base_url
end