Class: PatientHttp::SolidQueue::Configuration::ProfileConfiguration

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/patient_http/solid_queue/configuration.rb

Overview

View of a base configuration with a profile's option overrides applied. Everything not overridden (secrets, preprocessors, payload stores, encryption, logging) delegates to the base configuration, so all processors share those registries.

Instance Method Summary collapse

Constructor Details

#initialize(base_configuration, overrides) ⇒ ProfileConfiguration

Returns a new instance of ProfileConfiguration.



195
196
197
198
199
200
# File 'lib/patient_http/solid_queue/configuration.rb', line 195

def initialize(base_configuration, overrides)
  super(base_configuration)
  overrides.each do |key, value|
    define_singleton_method(key) { value }
  end
end