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

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

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

Parameters:

  • other (Object)

    Can be any type.

Returns:

  • (Boolean, nil)


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.

Returns:

  • (Boolean)


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.

Returns:

  • (Boolean)


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.

Returns:

  • (Boolean)


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.

Returns:

  • (Boolean)


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

def valid_result_message?
  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.

Returns:

  • (Boolean)


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.

Returns:

  • (Boolean)


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.

Returns:

  • (Boolean)


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.

Returns:

  • (Boolean)


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.

Returns:

  • (Boolean)


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