Class: Omnipay::Configuration
- Inherits:
-
Object
- Object
- Omnipay::Configuration
- Includes:
- Singleton
- Defined in:
- lib/omnipay/configuration.rb
Overview
The global Omnipay configuration singleton Can be assigned the following values :
-
base_path
(default “/pay”) : the base path which will be hit in the payment providers callbacks. -
base_uri
(default nil) : the base uri (scheme + host + port) which will be hit in the payment providers callbacks.
Instance Attribute Summary collapse
-
#base_path ⇒ Object
Returns the value of attribute base_path.
-
#base_uri ⇒ Object
Returns the value of attribute base_uri.
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 |
# File 'lib/omnipay/configuration.rb', line 13 def initialize @base_uri = nil @base_path = "/pay" end |
Instance Attribute Details
#base_path ⇒ Object
Returns the value of attribute base_path.
11 12 13 |
# File 'lib/omnipay/configuration.rb', line 11 def base_path @base_path end |
#base_uri ⇒ Object
Returns the value of attribute base_uri.
11 12 13 |
# File 'lib/omnipay/configuration.rb', line 11 def base_uri @base_uri end |