Class: ProcessSettings::Testing::Monitor

Inherits:
AbstractMonitor show all
Defined in:
lib/process_settings/testing/monitor.rb

Overview

A special instance of the monitor specifically used for testing that allows the providing of a settings array from memory to initialize the ProcessSetting Monitor for testing

Instance Attribute Summary

Attributes inherited from AbstractMonitor

#full_context_cache, #logger, #min_polling_seconds, #static_context, #statically_targeted_settings

Instance Method Summary collapse

Methods inherited from AbstractMonitor

#[], #cancel_when_updated, ensure_no_symbols, #full_context_from_cache, #on_change, #targeted_value, #when_updated

Constructor Details

#initialize(settings_array, logger:) ⇒ Monitor

Returns a new instance of Monitor.



17
18
19
20
# File 'lib/process_settings/testing/monitor.rb', line 17

def initialize(settings_array, logger:)
  super(logger: logger)
  @statically_targeted_settings = settings_array
end