Class: Frame::Configuration
- Inherits:
-
Object
- Object
- Frame::Configuration
- Defined in:
- lib/frame/configuration.rb
Overview
Configuration management for the Frame SDK.
Handles API keys, base URLs, timeouts, and other SDK settings. Typically accessed through the Frame module methods like Frame.api_key.
Constant Summary collapse
- DEFAULT_API_BASE =
"https://api.framepayments.com"- DEFAULT_OPEN_TIMEOUT =
30- DEFAULT_READ_TIMEOUT =
80- DEFAULT_VERIFY_SSL_CERTS =
true
Instance Attribute Summary collapse
-
#api_base ⇒ Object
Returns the value of attribute api_base.
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#log_level ⇒ Object
Returns the value of attribute log_level.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
-
#read_timeout ⇒ Object
Returns the value of attribute read_timeout.
-
#verify_ssl_certs ⇒ Object
Returns the value of attribute verify_ssl_certs.
Class Method Summary collapse
Instance Attribute Details
#api_base ⇒ Object
Returns the value of attribute api_base.
14 15 16 |
# File 'lib/frame/configuration.rb', line 14 def api_base @api_base end |
#api_key ⇒ Object
Returns the value of attribute api_key.
14 15 16 |
# File 'lib/frame/configuration.rb', line 14 def api_key @api_key end |
#log_level ⇒ Object
Returns the value of attribute log_level.
14 15 16 |
# File 'lib/frame/configuration.rb', line 14 def log_level @log_level end |
#logger ⇒ Object
Returns the value of attribute logger.
14 15 16 |
# File 'lib/frame/configuration.rb', line 14 def logger @logger end |
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
14 15 16 |
# File 'lib/frame/configuration.rb', line 14 def open_timeout @open_timeout end |
#read_timeout ⇒ Object
Returns the value of attribute read_timeout.
14 15 16 |
# File 'lib/frame/configuration.rb', line 14 def read_timeout @read_timeout end |
#verify_ssl_certs ⇒ Object
Returns the value of attribute verify_ssl_certs.
14 15 16 |
# File 'lib/frame/configuration.rb', line 14 def verify_ssl_certs @verify_ssl_certs end |
Class Method Details
.setup ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/frame/configuration.rb', line 16 def self.setup new.tap do |config| config.api_base = DEFAULT_API_BASE config.open_timeout = DEFAULT_OPEN_TIMEOUT config.read_timeout = DEFAULT_READ_TIMEOUT config.verify_ssl_certs = DEFAULT_VERIFY_SSL_CERTS config.log_level = nil config.logger = nil end end |