Class: ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Validator
- Inherits:
-
Object
- Object
- ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Validator
- Defined in:
- lib/convenient_service/rspec/matchers/classes/results/base/entities/validator.rb,
lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result.rb,
lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result_code.rb,
lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result_data.rb,
lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result_step.rb,
lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result_type.rb,
lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result_status.rb,
lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result_message.rb,
lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result_service.rb,
lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result_original_service.rb
Defined Under Namespace
Modules: Commands
Instance Attribute Summary collapse
- #matcher ⇒ Object readonly private
Instance Method Summary collapse
- #==(other) ⇒ Boolean? private
- #initialize(matcher:) ⇒ void constructor private
- #valid_result? ⇒ Boolean private
- #valid_result_code? ⇒ Boolean private
- #valid_result_data? ⇒ Boolean private
- #valid_result_message? ⇒ Boolean private
- #valid_result_original_service? ⇒ Boolean private
- #valid_result_service? ⇒ Boolean private
- #valid_result_status? ⇒ Boolean private
- #valid_result_step? ⇒ Boolean private
- #valid_result_type? ⇒ Boolean private
Constructor Details
#initialize(matcher:) ⇒ 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.
27 28 29 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator.rb', line 27 def initialize(matcher:) @matcher = matcher end |
Instance Attribute Details
#matcher ⇒ 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.
19 20 21 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator.rb', line 19 def matcher @matcher end |
Instance Method Details
#==(other) ⇒ 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.
118 119 120 121 122 123 124 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator.rb', line 118 def ==(other) return nil unless other.instance_of?(self.class) return false if matcher != other.matcher true end |
#valid_result? ⇒ 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.
36 37 38 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator.rb', line 36 def valid_result? Commands::ValidateResult[validator: self] end |
#valid_result_code? ⇒ 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.
45 46 47 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator.rb', line 45 def valid_result_code? Commands::ValidateResultCode[validator: self] end |
#valid_result_data? ⇒ 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.
54 55 56 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator.rb', line 54 def valid_result_data? Commands::ValidateResultData[validator: self] end |
#valid_result_message? ⇒ 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.
63 64 65 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator.rb', line 63 def Commands::ValidateResultMessage[validator: self] end |
#valid_result_original_service? ⇒ 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.
81 82 83 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator.rb', line 81 def valid_result_original_service? Commands::ValidateResultOriginalService[validator: self] end |
#valid_result_service? ⇒ 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.
72 73 74 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator.rb', line 72 def valid_result_service? Commands::ValidateResultService[validator: self] end |
#valid_result_status? ⇒ 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.
90 91 92 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator.rb', line 90 def valid_result_status? Commands::ValidateResultStatus[validator: self] end |
#valid_result_step? ⇒ 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.
99 100 101 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator.rb', line 99 def valid_result_step? Commands::ValidateResultStep[validator: self] end |
#valid_result_type? ⇒ 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.
108 109 110 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator.rb', line 108 def valid_result_type? Commands::ValidateResultType[validator: self] end |