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.
27 28 29 30 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/cast_method.rb', line 27 def initialize(other:, options:) @other = other @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
15 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/cast_method.rb', line 15 attr_reader :other |
#other ⇒ Object (readonly)
Returns the value of attribute other.
15 16 17 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/cast_method.rb', line 15 def other @other end |
Instance Method Details
#call ⇒ ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method?
39 40 41 42 43 44 45 46 47 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/cast_method.rb', line 39 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 |