Method: ConfigurationService::Factory::Context#initialize
- Defined in:
- lib/configuration_service/factory/context.rb
#initialize(source) ⇒ Context
Returns a new factory context
The following keys are used by the ConfigurationService::Factory:
- identifier
-
the unique identity of the configuration data (see Client#initialize)
- token
-
authorization token for the identified configuration data (see Client#initialize)
- provider_id
-
the unique identity of the service provider (see ProviderRegistry)
- provider_config
-
configuration options for the service provider (see service provider documentation)
- decorators
-
list of decorators to compose into the service (see Decorator and #DecoratorRegistry)
36 37 38 |
# File 'lib/configuration_service/factory/context.rb', line 36 def initialize(source) @env = SymbolicAccessWrapper.new(source) end |