Class: Fluence::Gateway::Configuration::Settings

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#appcenter_urlString

Base URL of the appcenter OAuth2 server.

Returns:

  • (String)

    (default: 'https://appcenter.fluence-europe.cloud')

#client_idObject

Returns the value of attribute client_id.

#client_secretString?

OAuth2 client secret.

Returns:

  • (String, nil)

    the configured client_secret, or nil when unset

#gateway_urlString

Base URL of the Fluence API gateway.

Returns:

  • (String)

    (default: 'https://gateway.fluence-europe.cloud')

#timeoutInteger

HTTP timeout in seconds.

Returns:

  • (Integer)

    (default: 30)