Module: ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method::Entities::Directions Private

Includes:
ConvenientService::Support::Castable
Defined in:
lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/directions.rb,
lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/directions/base.rb,
lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/directions/input.rb,
lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/directions/output.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

Defined Under Namespace

Classes: Base, Input, Output

Class Method Summary collapse

Methods included from ConvenientService::Support::Concern

included

Class Method Details

.cast(other) ⇒ ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method::Entities::Direction::Base?

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:

  • other (String, Symbol, nil)

Returns:

  • (ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method::Entities::Direction::Base, nil)

Since:

  • 1.0.0



27
28
29
30
31
32
33
34
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/directions.rb', line 27

def cast(other)
  case other
  when :input, "input", nil
    Entities::Directions::Input.new
  when :output, "output"
    Entities::Directions::Output.new
  end
end