Class: Omnipay::Configuration

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_pathObject

Returns the value of attribute base_path.



11
12
13
# File 'lib/omnipay/configuration.rb', line 11

def base_path
  @base_path
end

#base_uriObject

Returns the value of attribute base_uri.



11
12
13
# File 'lib/omnipay/configuration.rb', line 11

def base_uri
  @base_uri
end