Module: ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method::Entities::Directions
- 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
Defined Under Namespace
Classes: Base, Input, Output
Class Method Summary
collapse
cast!
abstract_method
Class Method Details
.cast(other) ⇒ ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method::Entities::Direction::Base?
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
|