Class: Faulty::Storage::AutoWire::Options
- Inherits:
-
Struct
- Object
- Struct
- Faulty::Storage::AutoWire::Options
- Includes:
- ImmutableOptions
- Defined in:
- lib/faulty/storage/auto_wire.rb
Overview
Options for Faulty::Storage::AutoWire
Instance Attribute Summary collapse
-
#circuit ⇒ Circuit
readonly
A circuit for CircuitProxy if one is created.
-
#notifier ⇒ Events::Notifier
readonly
A Faulty notifier.
Instance Method Summary collapse
Methods included from ImmutableOptions
#defaults, #dup_with, #finalize, #initialize, #setup
Instance Attribute Details
#circuit ⇒ Circuit (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.
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/faulty/storage/auto_wire.rb', line 18 Options = Struct.new( :circuit, :notifier ) do include ImmutableOptions def required %i[notifier] end end |
#notifier ⇒ Events::Notifier (readonly)
Returns A Faulty notifier. If given, listeners are ignored.
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/faulty/storage/auto_wire.rb', line 18 Options = Struct.new( :circuit, :notifier ) do include ImmutableOptions def required %i[notifier] end end |
Instance Method Details
#required ⇒ Object
24 25 26 |
# File 'lib/faulty/storage/auto_wire.rb', line 24 def required %i[notifier] end |