Class: Tosspayments2::Rails::Configuration
- Inherits:
-
Object
- Object
- Tosspayments2::Rails::Configuration
- Includes:
- Singleton
- Defined in:
- lib/tosspayments2/rails/configuration.rb
Instance Attribute Summary collapse
-
#api_base ⇒ Object
Returns the value of attribute api_base.
-
#client_key ⇒ Object
Returns the value of attribute client_key.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#secret_key ⇒ Object
Returns the value of attribute secret_key.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
-
#widget_version ⇒ Object
Returns the value of attribute widget_version.
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 17 18 |
# File 'lib/tosspayments2/rails/configuration.rb', line 13 def initialize = 'v2' @api_base = 'https://api.tosspayments.com' @timeout = 10 @logger = defined?(::Rails) ? ::Rails.logger : Logger.new($stdout) end |
Instance Attribute Details
#api_base ⇒ Object
Returns the value of attribute api_base.
11 12 13 |
# File 'lib/tosspayments2/rails/configuration.rb', line 11 def api_base @api_base end |
#client_key ⇒ Object
Returns the value of attribute client_key.
11 12 13 |
# File 'lib/tosspayments2/rails/configuration.rb', line 11 def client_key @client_key end |
#logger ⇒ Object
Returns the value of attribute logger.
11 12 13 |
# File 'lib/tosspayments2/rails/configuration.rb', line 11 def logger @logger end |
#secret_key ⇒ Object
Returns the value of attribute secret_key.
11 12 13 |
# File 'lib/tosspayments2/rails/configuration.rb', line 11 def secret_key @secret_key end |
#timeout ⇒ Object
Returns the value of attribute timeout.
11 12 13 |
# File 'lib/tosspayments2/rails/configuration.rb', line 11 def timeout @timeout end |
#widget_version ⇒ Object
Returns the value of attribute widget_version.
11 12 13 |
# File 'lib/tosspayments2/rails/configuration.rb', line 11 def end |