Class: Faulty::Cache::AutoWire::Options

Inherits:
Struct
  • Object
show all
Includes:
ImmutableOptions
Defined in:
lib/faulty/cache/auto_wire.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ImmutableOptions

#defaults, #dup_with, #finalize, #initialize, #setup

Instance Attribute Details

#circuitCircuit (readonly)

Returns A circuit for CircuitProxy if one is created. When modifying this, be careful to use only a reliable circuit storage backend so that you don't introduce cascading failures.

Returns:

  • (Circuit)

    A circuit for CircuitProxy if one is created. When modifying this, be careful to use only a reliable circuit storage backend so that you don't introduce cascading failures.



18
19
20
21
22
23
24
25
26
27
# File 'lib/faulty/cache/auto_wire.rb', line 18

Options = Struct.new(
  :circuit,
  :notifier
) do
  include ImmutableOptions

  def required
    %i[notifier]
  end
end

#notifierEvents::Notifier (readonly)

Returns A Faulty notifier. If given, listeners are ignored.

Returns:



18
19
20
21
22
23
24
25
26
27
# File 'lib/faulty/cache/auto_wire.rb', line 18

Options = Struct.new(
  :circuit,
  :notifier
) do
  include ImmutableOptions

  def required
    %i[notifier]
  end
end

Instance Method Details

#requiredObject



24
25
26
# File 'lib/faulty/cache/auto_wire.rb', line 24

def required
  %i[notifier]
end