Class: ActiveInteractor::Interactor::Perform::Options

Inherits:
Object
  • Object
show all
Includes:
Configurable
Defined in:
lib/active_interactor/interactor/perform.rb

Overview

Interactor #perform options

Author:

Since:

  • 1.0.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Options

Initialize a new instance of ActiveInteractor::Interactor::Perform::Options

Parameters:

Options Hash (options):

Since:

  • 1.0.0



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_callbacksBoolean

if true an organizer will be instructed to skip each_perform callbacks.

Returns:

  • (Boolean)

    whether or not to skip each_perform callbacks

Since:

  • 1.0.0



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_callbacksBoolean

if true an interactor will be instructed to skip perform callbacks.

Returns:

  • (Boolean)

    whether or not to skip perform callbacks.

Since:

  • 1.0.0



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_rollbackBoolean

if true an interactor will be instructed to skip #rollback on context failure.

Returns:

  • (Boolean)

    whether or not to skip #rollback

Since:

  • 1.0.0



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_callbacksBoolean

if true an interactor will be instructed to skip rollback callbacks on context failure.

Returns:

  • (Boolean)

    whether or not to skip rollback callbacks.

Since:

  • 1.0.0



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

#validateBoolean

if false an interactor will not run validations.

Returns:

  • (Boolean)

    whether or to run validations.

Since:

  • 1.0.0



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_calledBoolean

if false an interactor will not run validations with the validation context :called.

Returns:

  • (Boolean)

    whether or to run validation with the validation context :called.

Since:

  • 1.0.0



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_callingBoolean

if false an interactor will not run validations with the validation context :calling.

Returns:

  • (Boolean)

    whether or to run validations with the validation context :calling

Since:

  • 1.0.0



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