Class: ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Validator::Commands::ValidateResult

Inherits:
Support::Command
  • Object
show all
Includes:
Support::Delegate
Defined in:
lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Support::Delegate::ClassMethodsForForwardable

#delegate

Methods inherited from Support::Command

[], call

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.



90
91
92
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result.rb', line 90

def initialize(validator:)
  @validator = validator
end

Instance Attribute Details

#validatorObject (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.



26
27
28
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result.rb', line 26

def validator
  @validator
end

Instance Method Details

#callBoolean

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.



100
101
102
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result.rb', line 100

def call
  validations.all?(true)
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.

Returns:

  • (Boolean)


82
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result.rb', line 82

delegate :valid_result_code?, to: :validator

#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.

Returns:

  • (Boolean)


68
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result.rb', line 68

delegate :valid_result_data?, to: :validator

#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.

Returns:

  • (Boolean)


75
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result.rb', line 75

delegate :valid_result_message?, to: :validator

#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.

Returns:

  • (Boolean)


54
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result.rb', line 54

delegate :valid_result_original_service?, to: :validator

#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.

Returns:

  • (Boolean)


47
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result.rb', line 47

delegate :valid_result_service?, to: :validator

#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.

Returns:

  • (Boolean)


40
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result.rb', line 40

delegate :valid_result_status?, to: :validator

#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.

Returns:

  • (Boolean)


61
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result.rb', line 61

delegate :valid_result_step?, to: :validator

#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.

Returns:

  • (Boolean)


33
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result.rb', line 33

delegate :valid_result_type?, to: :validator