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.



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

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.



24
25
26
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator.rb', line 24

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)


123
124
125
126
127
128
129
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator.rb', line 123

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)


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

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)


50
51
52
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator.rb', line 50

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)


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

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)


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

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)


86
87
88
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator.rb', line 86

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)


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

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)


95
96
97
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator.rb', line 95

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)


104
105
106
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator.rb', line 104

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)


113
114
115
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/validator.rb', line 113

def valid_result_type?
  Commands::ValidateResultType[validator: self]
end