Module: ConvenientService::Service::Plugins::HasJSendResultParamsValidations::UsingDryValidation::NoOpConcern Private

Includes:
Core::Entities::Config::Entities::Concerns::Usual
Defined in:
lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_dry_validation/no_op_concern.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Since:

  • 1.0.0

Class Method Summary collapse

Methods included from Core::Entities::Config::Entities::Concerns::Usual

included

Class Method Details

.contract(&block) ⇒ nil

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Note:

Class<Dry::Validation::Contract> is returned when skip_validations option detail is false or not used.

Parameters:

  • block (Proc, nil)

Returns:

  • (nil)

Since:

  • 1.0.0



35
36
# File 'lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_dry_validation/no_op_concern.rb', line 35

def contract(&block)
end

.with(skip_validations: false) ⇒ Module

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Parameters:

  • skip_validations (Boolean) (defaults to: false)

Returns:

  • (Module)

Since:

  • 1.0.0



21
22
23
24
25
# File 'lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_dry_validation/no_op_concern.rb', line 21

def with(skip_validations: false)
  return self if skip_validations

  Plugins::HasJSendResultParamsValidations::UsingDryValidation::Concern
end