Class: Stoplight::Wiring::System::LightBuilder Private
- Inherits:
-
LightBuilder
- Object
- LightBuilder
- Stoplight::Wiring::System::LightBuilder
- Defined in:
- lib/stoplight/wiring/system/light_builder.rb
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.
Instance Method Summary collapse
-
#initialize(system:, config:, factory:) ⇒ LightBuilder
constructor
private
A new instance of LightBuilder.
- #key_space ⇒ Object private
- #storage_set ⇒ Object private
Methods inherited from LightBuilder
Constructor Details
#initialize(system:, config:, factory:) ⇒ LightBuilder
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 LightBuilder.
7 8 9 10 11 |
# File 'lib/stoplight/wiring/system/light_builder.rb', line 7 def initialize(system:, config:, factory:) @system = system super(config:, factory:) end |
Instance Method Details
#key_space ⇒ 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.
13 14 15 16 |
# File 'lib/stoplight/wiring/system/light_builder.rb', line 13 def key_space = @key_space ||= Infrastructure::Redis::Storage::KeySpace.build( system_name: system.name, light_name: config.name ) |
#storage_set ⇒ 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.
18 19 20 |
# File 'lib/stoplight/wiring/system/light_builder.rb', line 18 def storage_set @storage_set ||= StorageSetBuilder.new(backend: build_backend, windowed: !config.window_size.nil?).build end |