Class: Stoplight::Wiring::System::LightBuilder Private

Inherits:
LightBuilder
  • Object
show all
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

Methods inherited from LightBuilder

#build

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_spaceObject

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_setObject

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