Class: Fluxo::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/fluxo/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_handlersObject (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_attributesObject

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_attributesObject

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_resultObject

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_resultObject

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