Class: Bygpay::Configuration
- Inherits:
-
Object
- Object
- Bygpay::Configuration
- Defined in:
- lib/bygpay/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#deposit_mobile_path ⇒ Object
Returns the value of attribute deposit_mobile_path.
-
#deposit_status_overide_path ⇒ Object
Returns the value of attribute deposit_status_overide_path.
-
#deposit_status_path ⇒ Object
Returns the value of attribute deposit_status_path.
-
#withdraw_mobile_path ⇒ Object
Returns the value of attribute withdraw_mobile_path.
-
#withdraw_status_overide_path ⇒ Object
Returns the value of attribute withdraw_status_overide_path.
-
#withdraw_status_path ⇒ Object
Returns the value of attribute withdraw_status_path.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/bygpay/configuration.rb', line 7 def initialize @base_url = nil @api_key = nil # Preset default paths but allow for changes @deposit_mobile_path = '/deposits/mobile' @deposit_status_overide_path = '/deposits/status-overide' @deposit_status_path = '/deposits' @withdraw_mobile_path = '/withdrawals/mobile' @withdraw_status_overide_path = '/withdrawals/status-overide' @withdraw_status_path = '/withdrawals' end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
3 4 5 |
# File 'lib/bygpay/configuration.rb', line 3 def api_key @api_key end |
#base_url ⇒ Object
Returns the value of attribute base_url.
3 4 5 |
# File 'lib/bygpay/configuration.rb', line 3 def base_url @base_url end |
#deposit_mobile_path ⇒ Object
Returns the value of attribute deposit_mobile_path.
3 4 5 |
# File 'lib/bygpay/configuration.rb', line 3 def deposit_mobile_path @deposit_mobile_path end |
#deposit_status_overide_path ⇒ Object
Returns the value of attribute deposit_status_overide_path.
3 4 5 |
# File 'lib/bygpay/configuration.rb', line 3 def deposit_status_overide_path @deposit_status_overide_path end |
#deposit_status_path ⇒ Object
Returns the value of attribute deposit_status_path.
3 4 5 |
# File 'lib/bygpay/configuration.rb', line 3 def deposit_status_path @deposit_status_path end |
#withdraw_mobile_path ⇒ Object
Returns the value of attribute withdraw_mobile_path.
3 4 5 |
# File 'lib/bygpay/configuration.rb', line 3 def withdraw_mobile_path @withdraw_mobile_path end |
#withdraw_status_overide_path ⇒ Object
Returns the value of attribute withdraw_status_overide_path.
3 4 5 |
# File 'lib/bygpay/configuration.rb', line 3 def withdraw_status_overide_path @withdraw_status_overide_path end |
#withdraw_status_path ⇒ Object
Returns the value of attribute withdraw_status_path.
3 4 5 |
# File 'lib/bygpay/configuration.rb', line 3 def withdraw_status_path @withdraw_status_path end |