Module: ConvenientService::Service::Plugins::CanHaveSteps::Concern

Includes:
ConvenientService::Support::Concern
Defined in:
lib/convenient_service/service/plugins/can_have_steps/concern.rb

Class Method Summary collapse

Class Method Details

.raw(value) ⇒ ConvenientService::Support::RawValue

Allows to pass a value to in method without its intermediate processing.

Examples:

:chat_v2 is passed to AssertFeatureEnabled as it is.

step AssertFeatureEnabled, in: {name: raw(:chat_v2)}
# that is converted to the following service invocation:
AssertFeatureEnabled.result(name: :chat_v2)

Parameters:

  • value (Object)

    Can be any type.

Returns:

See Also:



25
26
27
# File 'lib/convenient_service/service/plugins/can_have_steps/concern.rb', line 25

def raw(value)
  Support::RawValue.wrap(value)
end

.step_classConvenientService::Service::Plugins::CanHaveSteps::Entities::Step

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.



34
35
36
# File 'lib/convenient_service/service/plugins/can_have_steps/concern.rb', line 34

def step_class
  @step_class ||= Commands::CreateStepClass.call(service_class: self)
end