Class: WorkOS::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/workos/configuration.rb

Overview

Configuration class sets config initializer

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_hostnameObject

Returns the value of attribute api_hostname.


6
7
8
# File 'lib/workos/configuration.rb', line 6

def api_hostname
  @api_hostname
end

#keyObject

Returns the value of attribute key.


6
7
8
# File 'lib/workos/configuration.rb', line 6

def key
  @key
end

#timeoutObject

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