Class: Fluxo::Config
- Inherits:
-
Object
- Object
- Fluxo::Config
- Defined in:
- lib/fluxo/config.rb
Instance Attribute Summary collapse
-
#error_handlers ⇒ Object
readonly
Returns the value of attribute error_handlers.
-
#strict_attributes ⇒ Object
When set to true, the operation will not validate attributes definition before calling the operation.
-
#strict_transient_attributes ⇒ Object
When set to true, the operation will not validate the transient_attributes defition during the flow step execution.
-
#wrap_falsey_result ⇒ Object
When set to true, the result of a falsey operation will be wrapped in a Failure.
-
#wrap_truthy_result ⇒ Object
When set to true, the result of a truthy operation will be wrapped in a Success.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
25 26 27 28 29 30 31 |
# File 'lib/fluxo/config.rb', line 25 def initialize @error_handlers = [] @wrap_falsey_result = false @wrap_truthy_result = false @strict_transient_attributes = true @strict_attributes = true end |
Instance Attribute Details
#error_handlers ⇒ Object (readonly)
Returns the value of attribute error_handlers.
11 12 13 |
# File 'lib/fluxo/config.rb', line 11 def error_handlers @error_handlers end |
#strict_attributes ⇒ Object
When set to true, the operation will not validate attributes definition before calling the operation.
23 24 25 |
# File 'lib/fluxo/config.rb', line 23 def strict_attributes @strict_attributes end |
#strict_transient_attributes ⇒ Object
When set to true, the operation will not validate the transient_attributes defition during the flow step execution.
20 21 22 |
# File 'lib/fluxo/config.rb', line 20 def strict_transient_attributes @strict_transient_attributes end |
#wrap_falsey_result ⇒ Object
When set to true, the result of a falsey operation will be wrapped in a Failure.
14 15 16 |
# File 'lib/fluxo/config.rb', line 14 def wrap_falsey_result @wrap_falsey_result end |
#wrap_truthy_result ⇒ Object
When set to true, the result of a truthy operation will be wrapped in a Success.
17 18 19 |
# File 'lib/fluxo/config.rb', line 17 def wrap_truthy_result @wrap_truthy_result end |