Class: ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Validator::Commands::ValidateResultType
- Inherits:
-
Support::Command
- Object
- Support::Command
- ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Validator::Commands::ValidateResultType
- Defined in:
- lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result_type.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::DependencyContainer::Import
Methods included from Support::Delegate::ClassMethodsForForwardable
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.
63 64 65 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result_type.rb', line 63 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.
22 23 24 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result_type.rb', line 22 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.
75 76 77 78 79 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result_type.rb', line 75 def call return false unless matcher.result commands.is_result?(result) 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.
43 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result_type.rb', line 43 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.
29 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result_type.rb', line 29 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.
36 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result_type.rb', line 36 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.
50 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result_type.rb', line 50 delegate :step, to: :chain |