Method: ConfigurationService::Base#initialize

Defined in:
lib/configuration_service/base.rb

#initialize(identifier, token, provider) ⇒ Base

Deprecated.

use ConfigurationService::Client instead

Creates a new configuration service API instance

Parameters:

  • the unique identity of some configuration data and its associated metadata. It might be the name of a service or service component. It might include an environment label (e.g. production, staging, etc.) For example:

    • billing.acme.com

    • billing-web1.acme.com

    • billing/production/web1

  • opaque string representing authority to access the configuration data and associated metadata. Interpretation of the token is provider-dependent; it is opaque to the API and client.

  • a configured service provider instance, to which requests will be delegated.



33
34
35
36
37
# File 'lib/configuration_service/base.rb', line 33

def initialize(identifier, token, provider)
  warn "[DEPRECATION] 'ConfigurationService::Base' is deprecated.  Please use 'ConfigurationService::Client'."
  @identifier = identifier
  @client = ConfigurationService::Client.new(token, provider)
end