Class: CreditGateway::Configuration
- Inherits:
-
Object
- Object
- CreditGateway::Configuration
- Defined in:
- lib/credit_gateway/configuration.rb
Constant Summary collapse
- BASE_URLS =
{ production: 'https://api.connector.crifrealtime.com', sandbox: 'https://api-sandbox.connector.crifrealtime.com' }.freeze
- AUTH_URLS =
{ production: 'https://api.connector.crifrealtime.com', sandbox: 'https://api-sandbox.connector.crifrealtime.com' }.freeze
Instance Attribute Summary collapse
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#client_secret ⇒ Object
Returns the value of attribute client_secret.
-
#country ⇒ Object
Returns the value of attribute country.
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#verbose ⇒ Object
Returns the value of attribute verbose.
Instance Method Summary collapse
- #auth_url ⇒ Object
- #base_url ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
16 17 18 19 20 21 22 23 |
# File 'lib/credit_gateway/configuration.rb', line 16 def initialize @client_id = '' @client_secret = '' @country = nil @environment = :sandbox # can be either :sandbox or :production @debug = false @verbose = false end |
Instance Attribute Details
#client_id ⇒ Object
Returns the value of attribute client_id.
14 15 16 |
# File 'lib/credit_gateway/configuration.rb', line 14 def client_id @client_id end |
#client_secret ⇒ Object
Returns the value of attribute client_secret.
14 15 16 |
# File 'lib/credit_gateway/configuration.rb', line 14 def client_secret @client_secret end |
#country ⇒ Object
Returns the value of attribute country.
14 15 16 |
# File 'lib/credit_gateway/configuration.rb', line 14 def country @country end |
#debug ⇒ Object
Returns the value of attribute debug.
14 15 16 |
# File 'lib/credit_gateway/configuration.rb', line 14 def debug @debug end |
#environment ⇒ Object
Returns the value of attribute environment.
14 15 16 |
# File 'lib/credit_gateway/configuration.rb', line 14 def environment @environment end |
#verbose ⇒ Object
Returns the value of attribute verbose.
14 15 16 |
# File 'lib/credit_gateway/configuration.rb', line 14 def verbose @verbose end |