Class: PaytechGem::Configuration
- Inherits:
-
Object
- Object
- PaytechGem::Configuration
- Defined in:
- lib/paytech_gem.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#api_secret ⇒ Object
Returns the value of attribute api_secret.
-
#cancel_url ⇒ Object
Returns the value of attribute cancel_url.
-
#command_name ⇒ Object
Returns the value of attribute command_name.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#env ⇒ Object
Returns the value of attribute env.
-
#ipn_url ⇒ Object
Returns the value of attribute ipn_url.
-
#success_url ⇒ Object
Returns the value of attribute success_url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/paytech_gem.rb', line 11 def initialize # Set default values or leave them nil @api_key = ENV['PAYTECH_API_KEY'] @api_secret = ENV['PAYTECH_SECRET_KEY'] @currency = 'XOF' @command_name = 'Depot compte Nessi via PayTech' @env = ENV['PAYTECH_ENV'] @ipn_url = 'https://www.yapsy.sn/api/v1/paytech/ipn' @success_url = 'https://www.yapsy.sn/paytech/success' @cancel_url = 'https://www.yapsy.sn/paytech/cancel' end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
8 9 10 |
# File 'lib/paytech_gem.rb', line 8 def api_key @api_key end |
#api_secret ⇒ Object
Returns the value of attribute api_secret.
8 9 10 |
# File 'lib/paytech_gem.rb', line 8 def api_secret @api_secret end |
#cancel_url ⇒ Object
Returns the value of attribute cancel_url.
8 9 10 |
# File 'lib/paytech_gem.rb', line 8 def cancel_url @cancel_url end |
#command_name ⇒ Object
Returns the value of attribute command_name.
8 9 10 |
# File 'lib/paytech_gem.rb', line 8 def command_name @command_name end |
#currency ⇒ Object
Returns the value of attribute currency.
8 9 10 |
# File 'lib/paytech_gem.rb', line 8 def currency @currency end |
#env ⇒ Object
Returns the value of attribute env.
8 9 10 |
# File 'lib/paytech_gem.rb', line 8 def env @env end |
#ipn_url ⇒ Object
Returns the value of attribute ipn_url.
8 9 10 |
# File 'lib/paytech_gem.rb', line 8 def ipn_url @ipn_url end |
#success_url ⇒ Object
Returns the value of attribute success_url.
8 9 10 |
# File 'lib/paytech_gem.rb', line 8 def success_url @success_url end |