Class: ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method::Commands::CastMethod
- Inherits:
-
ConvenientService::Support::Command
- Object
- ConvenientService::Support::Command
- ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method::Commands::CastMethod
- Defined in:
- lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/cast_method.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#other ⇒ Object
readonly
Returns the value of attribute other.
Instance Method Summary collapse
- #call ⇒ ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method?
-
#initialize(other:, options:) ⇒ CastMethod
constructor
A new instance of CastMethod.
Methods inherited from ConvenientService::Support::Command
Constructor Details
#initialize(other:, options:) ⇒ CastMethod
Returns a new instance of CastMethod.
32 33 34 35 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/cast_method.rb', line 32 def initialize(other:, options:) @other = other @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
20 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/cast_method.rb', line 20 attr_reader :other |
#other ⇒ Object (readonly)
Returns the value of attribute other.
20 21 22 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/cast_method.rb', line 20 def other @other end |
Instance Method Details
#call ⇒ ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method?
44 45 46 47 48 49 50 51 52 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/cast_method.rb', line 44 def call return unless factory return unless key return unless name return unless caller return unless direction Method.new(key: key, name: name, caller: caller, direction: direction) end |