Class: ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Validator::Commands::ValidateResultStep
- Inherits:
-
Support::Command
- Object
- Support::Command
- ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Validator::Commands::ValidateResultStep
- Includes:
- Support::Delegate
- Defined in:
- lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result_step.rb
Instance Attribute Summary collapse
- #validator ⇒ Object readonly private
Instance Method Summary collapse
- #call ⇒ Boolean private
- #chain ⇒ ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Chain private
- #initialize(validator:) ⇒ void constructor private
- #matcher ⇒ ConvenientService::RSpec::Matchers::Classes::Results::Base private
- #result ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result private
- #step ⇒ ConvenientService::Service, Symbol private
Methods included from Support::Concern
Methods inherited from Support::Command
Constructor Details
#initialize(validator:) ⇒ void
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.
57 58 59 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result_step.rb', line 57 def initialize(validator:) @validator = validator end |
Instance Attribute Details
#validator ⇒ Object (readonly)
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.
21 22 23 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result_step.rb', line 21 def validator @validator end |
Instance Method Details
#call ⇒ Boolean
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.
70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result_step.rb', line 70 def call return false unless matcher.result return true unless chain.used_step? case step when ::Class then match_service_step? when :result then match_result_method_step? when ::Symbol then match_method_step? when nil then match_without_step? else ::ConvenientService.raise Exceptions::InvalidStep.new(step: step) end end |
#chain ⇒ ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Chain
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.
42 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result_step.rb', line 42 delegate :chain, to: :matcher |
#matcher ⇒ ConvenientService::RSpec::Matchers::Classes::Results::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.
28 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result_step.rb', line 28 delegate :matcher, to: :validator |
#result ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result
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.
35 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result_step.rb', line 35 delegate :result, to: :matcher |
#step ⇒ ConvenientService::Service, Symbol
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.
49 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result_step.rb', line 49 delegate :step, to: :chain |