Class: WorkOS::Configuration
- Inherits:
-
Object
- Object
- WorkOS::Configuration
- Defined in:
- lib/workos/configuration.rb
Overview
Configuration class sets config initializer
Instance Attribute Summary collapse
-
#api_hostname ⇒ Object
Returns the value of attribute api_hostname.
-
#key ⇒ Object
Returns the value of attribute key.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #key! ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 |
# File 'lib/workos/configuration.rb', line 8 def initialize @timeout = 60 end |
Instance Attribute Details
#api_hostname ⇒ Object
Returns the value of attribute api_hostname.
6 7 8 |
# File 'lib/workos/configuration.rb', line 6 def api_hostname @api_hostname end |
#key ⇒ Object
Returns the value of attribute key.
6 7 8 |
# File 'lib/workos/configuration.rb', line 6 def key @key end |
#timeout ⇒ Object
Returns the value of attribute timeout.
6 7 8 |
# File 'lib/workos/configuration.rb', line 6 def timeout @timeout end |
Instance Method Details
#key! ⇒ Object
12 13 14 |
# File 'lib/workos/configuration.rb', line 12 def key! key or raise '`WorkOS.config.key` not set' end |