Class: LWS::Config

Inherits:
Hashie::Dash
  • Object
show all
Defined in:
lib/lws/config.rb

Overview

Note:

Either the API token or API token middleware needs to be configured for the library to work properly!

The LWS API configuration class

This class represents the configuration that is used for connecting to LWS.

Instance Attribute Summary collapse

Instance Attribute Details

#api_tokenString?



24
# File 'lib/lws/config.rb', line 24

property :api_token

#api_token_middlewareFaraday::Middleware?



29
# File 'lib/lws/config.rb', line 29

property :api_token_middleware

#caching_object#read, #write



33
# File 'lib/lws/config.rb', line 33

property :caching_object, default: nil

#endpointsHash{Symbol=>String}



38
# File 'lib/lws/config.rb', line 38

property :endpoints, default: {}

#environmentSymbol



43
# File 'lib/lws/config.rb', line 43

property :environment, default: :production

#http_debugBoolean



47
# File 'lib/lws/config.rb', line 47

property :http_debug, default: false

#http_debug_headersBoolean



52
# File 'lib/lws/config.rb', line 52

property :http_debug_headers, default: false

#json_debugBoolean



56
# File 'lib/lws/config.rb', line 56

property :json_debug, default: false

#logger#fatal, ...



61
# File 'lib/lws/config.rb', line 61

property :logger

#stubbingString



66
# File 'lib/lws/config.rb', line 66

property :stubbing