Class: Easyop::Configuration
- Inherits:
-
Object
- Object
- Easyop::Configuration
- Defined in:
- lib/easyop/configuration.rb
Instance Attribute Summary collapse
-
#event_bus ⇒ Object
Bus adapter for domain events (Easyop::Plugins::Events / EventHandlers).
-
#strict_types ⇒ Object
When true, type mismatches in schemas raise Ctx::Failure.
-
#type_adapter ⇒ Object
Which type adapter to use for Schema validation.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
18 19 20 21 22 |
# File 'lib/easyop/configuration.rb', line 18 def initialize @type_adapter = :native @strict_types = false @event_bus = nil # nil = Memory bus (see Easyop::Events::Registry) end |
Instance Attribute Details
#event_bus ⇒ Object
Bus adapter for domain events (Easyop::Plugins::Events / EventHandlers). Options: :memory (default), :active_support, or a bus adapter instance.
16 17 18 |
# File 'lib/easyop/configuration.rb', line 16 def event_bus @event_bus end |
#strict_types ⇒ Object
When true, type mismatches in schemas raise Ctx::Failure. When false (default), mismatches emit a warning and execution continues.
9 10 11 |
# File 'lib/easyop/configuration.rb', line 9 def strict_types @strict_types end |
#type_adapter ⇒ Object
Which type adapter to use for Schema validation. Options: :none, :native, :literal, :dry, :active_model
5 6 7 |
# File 'lib/easyop/configuration.rb', line 5 def type_adapter @type_adapter end |