Class: Fluence::Gateway::Configuration::Settings
- Inherits:
-
Object
- Object
- Fluence::Gateway::Configuration::Settings
- Includes:
- Singleton
- Defined in:
- lib/fluence/gateway/configuration.rb
Overview
Singleton value object holding the SDK configuration.
Stores the OAuth2 credentials and the base URLs for the gateway and appcenter. Instantiated lazily the first time #config is called.
All attributes are read/write. URL and timeout attributes carry
sensible defaults; credential attributes start as nil and must be
set by the host application.
Instance Attribute Summary collapse
-
#appcenter_url ⇒ String
Base URL of the appcenter OAuth2 server.
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#client_secret ⇒ String?
OAuth2 client secret.
-
#gateway_url ⇒ String
Base URL of the Fluence API gateway.
-
#timeout ⇒ Integer
HTTP timeout in seconds.
Instance Attribute Details
#appcenter_url ⇒ String
Base URL of the appcenter OAuth2 server.
#client_id ⇒ Object
Returns the value of attribute client_id.
#client_secret ⇒ String?
OAuth2 client secret.
#gateway_url ⇒ String
Base URL of the Fluence API gateway.
#timeout ⇒ Integer
HTTP timeout in seconds.