Class: Stoplight::Wiring::System::LightFactory Private
- Inherits:
-
LightFactory
- Object
- LightFactory
- Stoplight::Wiring::System::LightFactory
- Defined in:
- lib/stoplight/wiring/system/light_factory.rb,
sig/_private/stoplight/system/light_factory.rbs
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Defined Under Namespace
Classes: InternalLightFactory
Constant Summary
Constants inherited from LightFactory
LightFactory::TrafficControlDsl, LightFactory::TrafficRecoveryDsl
Instance Attribute Summary collapse
- #system ⇒ System readonly private
Attributes inherited from LightFactory
Instance Method Summary collapse
-
#initialize(system:, config:) ⇒ LightFactory
constructor
private
A new instance of LightFactory.
- #with(name: T.undefined, cool_off_time: T.undefined, threshold: T.undefined, recovery_threshold: T.undefined, window_size: T.undefined, tracked_errors: T.undefined, skipped_errors: T.undefined, data_store: T.undefined, error_notifier: T.undefined, notifiers: T.undefined, traffic_control: T.undefined, traffic_recovery: T.undefined) ⇒ Object private
Methods inherited from LightFactory
#==, #build, #build_with, #eql, #hash
Methods included from Domain::_LightFactory
Constructor Details
#initialize(system:, config:) ⇒ LightFactory
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of LightFactory.
9 10 11 12 13 |
# File 'lib/stoplight/wiring/system/light_factory.rb', line 9 def initialize(system:, config:) @system = system super(config:) end |
Instance Attribute Details
#system ⇒ System (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
7 8 9 |
# File 'lib/stoplight/wiring/system/light_factory.rb', line 7 def system @system end |
Instance Method Details
#with(name: T.undefined, cool_off_time: T.undefined, threshold: T.undefined, recovery_threshold: T.undefined, window_size: T.undefined, tracked_errors: T.undefined, skipped_errors: T.undefined, data_store: T.undefined, error_notifier: T.undefined, notifiers: T.undefined, traffic_control: T.undefined, traffic_recovery: T.undefined) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/stoplight/wiring/system/light_factory.rb', line 15 def with( name: T.undefined, cool_off_time: T.undefined, threshold: T.undefined, recovery_threshold: T.undefined, window_size: T.undefined, tracked_errors: T.undefined, skipped_errors: T.undefined, data_store: T.undefined, error_notifier: T.undefined, notifiers: T.undefined, traffic_control: T.undefined, traffic_recovery: T.undefined ) self.class.new( system:, config: ConfigurationDsl.new( cool_off_time:, threshold:, recovery_threshold:, window_size:, tracked_errors:, skipped_errors:, traffic_control:, traffic_recovery:, error_notifier:, data_store:, notifiers: ).configure!(config) ) end |