Class: PayWithExtend::Configuration
- Inherits:
-
Object
- Object
- PayWithExtend::Configuration
- 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
-
#account_email ⇒ Object
Returns the value of attribute account_email.
-
#account_password ⇒ Object
Returns the value of attribute account_password.
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#api_version ⇒ Object
Returns the value of attribute api_version.
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#secure_base_url ⇒ Object
Returns the value of attribute secure_base_url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_email ⇒ Object
Returns the value of attribute account_email.
5 6 7 |
# File 'lib/pay_with_extend/configuration.rb', line 5 def account_email @account_email end |
#account_password ⇒ Object
Returns the value of attribute account_password.
5 6 7 |
# File 'lib/pay_with_extend/configuration.rb', line 5 def account_password @account_password end |
#api_key ⇒ Object
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_version ⇒ Object
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_url ⇒ Object
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 |
#environment ⇒ Object
Returns the value of attribute environment.
5 6 7 |
# File 'lib/pay_with_extend/configuration.rb', line 5 def environment @environment end |
#secure_base_url ⇒ Object
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 |