Class: WorkOS::Configuration
- Inherits:
-
Object
- Object
- WorkOS::Configuration
- Defined in:
- lib/workos/configuration.rb
Overview
Global configuration holder for ‘WorkOS.configure`.
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#log_level ⇒ Object
Returns the value of attribute log_level.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#max_retries ⇒ Object
Returns the value of attribute max_retries.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
17 18 19 20 21 |
# File 'lib/workos/configuration.rb', line 17 def initialize @base_url = WorkOS::BaseClient::DEFAULT_BASE_URL @timeout = WorkOS::BaseClient::DEFAULT_TIMEOUT @max_retries = WorkOS::BaseClient::DEFAULT_MAX_RETRIES end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
15 16 17 |
# File 'lib/workos/configuration.rb', line 15 def api_key @api_key end |
#base_url ⇒ Object
Returns the value of attribute base_url.
15 16 17 |
# File 'lib/workos/configuration.rb', line 15 def base_url @base_url end |
#client_id ⇒ Object
Returns the value of attribute client_id.
15 16 17 |
# File 'lib/workos/configuration.rb', line 15 def client_id @client_id end |
#log_level ⇒ Object
Returns the value of attribute log_level.
15 16 17 |
# File 'lib/workos/configuration.rb', line 15 def log_level @log_level end |
#logger ⇒ Object
Returns the value of attribute logger.
15 16 17 |
# File 'lib/workos/configuration.rb', line 15 def logger @logger end |
#max_retries ⇒ Object
Returns the value of attribute max_retries.
15 16 17 |
# File 'lib/workos/configuration.rb', line 15 def max_retries @max_retries end |
#timeout ⇒ Object
Returns the value of attribute timeout.
15 16 17 |
# File 'lib/workos/configuration.rb', line 15 def timeout @timeout end |