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::Concern

included

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.



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

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.



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

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.



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

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)


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

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)


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

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)


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

delegate :valid_result_message?, 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)


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

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)


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

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)


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

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)


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

delegate :valid_result_type?, to: :validator