Class: ActiveInteractor::Interactor::Perform::Options
- Inherits:
-
Object
- Object
- ActiveInteractor::Interactor::Perform::Options
- Includes:
- Configurable
- Defined in:
- lib/active_interactor/interactor/perform.rb
Overview
Interactor #perform options
Instance Attribute Summary collapse
-
#skip_each_perform_callbacks ⇒ Boolean
if
true
an organizer will be instructed to skip each_perform callbacks. -
#skip_perform_callbacks ⇒ Boolean
if
true
an interactor will be instructed to skip perform callbacks. -
#skip_rollback ⇒ Boolean
if
true
an interactor will be instructed to skip #rollback on context failure. -
#skip_rollback_callbacks ⇒ Boolean
if
true
an interactor will be instructed to skip rollback callbacks on context failure. -
#validate ⇒ Boolean
if
false
an interactor will not run validations. -
#validate_on_called ⇒ Boolean
if
false
an interactor will not run validations with the validation context:called
. -
#validate_on_calling ⇒ Boolean
if
false
an interactor will not run validations with the validation context:calling
.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Options
constructor
Initialize a new instance of Options.
Constructor Details
#initialize(options = {}) ⇒ Options
Initialize a new instance of ActiveInteractor::Interactor::Perform::Options
153 154 155 156 157 |
# File 'lib/active_interactor/interactor/perform.rb', line 153 class Options include ActiveInteractor::Configurable defaults skip_each_perform_callbacks: false, skip_perform_callbacks: false, skip_rollback: false, skip_rollback_callbacks: false, validate: true, validate_on_calling: true, validate_on_called: true end |
Instance Attribute Details
#skip_each_perform_callbacks ⇒ Boolean
if true
an organizer will be instructed to skip
each_perform callbacks.
153 154 155 156 157 |
# File 'lib/active_interactor/interactor/perform.rb', line 153 class Options include ActiveInteractor::Configurable defaults skip_each_perform_callbacks: false, skip_perform_callbacks: false, skip_rollback: false, skip_rollback_callbacks: false, validate: true, validate_on_calling: true, validate_on_called: true end |
#skip_perform_callbacks ⇒ Boolean
if true
an interactor will be instructed to skip perform
callbacks.
153 154 155 156 157 |
# File 'lib/active_interactor/interactor/perform.rb', line 153 class Options include ActiveInteractor::Configurable defaults skip_each_perform_callbacks: false, skip_perform_callbacks: false, skip_rollback: false, skip_rollback_callbacks: false, validate: true, validate_on_calling: true, validate_on_called: true end |
#skip_rollback ⇒ Boolean
if true
an interactor will be instructed to skip #rollback on
context failure.
153 154 155 156 157 |
# File 'lib/active_interactor/interactor/perform.rb', line 153 class Options include ActiveInteractor::Configurable defaults skip_each_perform_callbacks: false, skip_perform_callbacks: false, skip_rollback: false, skip_rollback_callbacks: false, validate: true, validate_on_calling: true, validate_on_called: true end |
#skip_rollback_callbacks ⇒ Boolean
if true
an interactor will be instructed to skip rollback
callbacks on context failure.
153 154 155 156 157 |
# File 'lib/active_interactor/interactor/perform.rb', line 153 class Options include ActiveInteractor::Configurable defaults skip_each_perform_callbacks: false, skip_perform_callbacks: false, skip_rollback: false, skip_rollback_callbacks: false, validate: true, validate_on_calling: true, validate_on_called: true end |
#validate ⇒ Boolean
if false
an interactor will not run validations.
153 154 155 156 157 |
# File 'lib/active_interactor/interactor/perform.rb', line 153 class Options include ActiveInteractor::Configurable defaults skip_each_perform_callbacks: false, skip_perform_callbacks: false, skip_rollback: false, skip_rollback_callbacks: false, validate: true, validate_on_calling: true, validate_on_called: true end |
#validate_on_called ⇒ Boolean
if false
an interactor will not run validations with the validation context :called
.
153 154 155 156 157 |
# File 'lib/active_interactor/interactor/perform.rb', line 153 class Options include ActiveInteractor::Configurable defaults skip_each_perform_callbacks: false, skip_perform_callbacks: false, skip_rollback: false, skip_rollback_callbacks: false, validate: true, validate_on_calling: true, validate_on_called: true end |
#validate_on_calling ⇒ Boolean
if false
an interactor will not run validations with the validation context :calling
.
153 154 155 156 157 |
# File 'lib/active_interactor/interactor/perform.rb', line 153 class Options include ActiveInteractor::Configurable defaults skip_each_perform_callbacks: false, skip_perform_callbacks: false, skip_rollback: false, skip_rollback_callbacks: false, validate: true, validate_on_calling: true, validate_on_called: true end |