Class: SmartCore::Schema::Checker::Reconciler::Matcher::Result Private

Inherits:
Object
  • Object
show all
Defined in:
lib/smart_core/schema/checker/reconciler/matcher/result.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0

Version:

  • 0.8.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(verifiable_hash) ⇒ 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.

Parameters:

Since:

  • 0.1.0

Version:

  • 0.8.0



33
34
35
36
37
# File 'lib/smart_core/schema/checker/reconciler/matcher/result.rb', line 33

def initialize(verifiable_hash)
  @verifiable_hash = verifiable_hash
  @contract_keys_results = []
  @extra_keys_results = []
end

Instance Attribute Details

#contract_keys_resultsSmartCore::Schema::Checker::Rules::Verifier::Result (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.



17
18
19
# File 'lib/smart_core/schema/checker/reconciler/matcher/result.rb', line 17

def contract_keys_results
  @contract_keys_results
end

#extra_keys_resultsSmartCore::Schema::Checker::Rules::ExtraKeys::Success, SmartCore::Schema::Checker::Rules::ExtraKeys::Failure (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.

]

Returns:

Since:

  • 0.1.0



25
26
27
# File 'lib/smart_core/schema/checker/reconciler/matcher/result.rb', line 25

def extra_keys_results
  @extra_keys_results
end

#verifiable_hashHash<String|Symbol,Any> (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.

Returns:

  • (Hash<String|Symbol,Any>)

Since:

  • 0.1.0



11
12
13
# File 'lib/smart_core/schema/checker/reconciler/matcher/result.rb', line 11

def verifiable_hash
  @verifiable_hash
end

Instance Method Details

#complete!SmartCore::Schema::Result

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:

Since:

  • 0.1.0

Version:

  • 0.8.0



84
85
86
# File 'lib/smart_core/schema/checker/reconciler/matcher/result.rb', line 84

def complete!
  SmartCore::Schema::Checker::Reconciler::Matcher::ResultFinalizer.finalize(self)
end

#contract_key_result(result) ⇒ 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.

This method returns an undefined value.

Parameters:

Since:

  • 0.1.0

Version:

  • 0.8.0



62
63
64
# File 'lib/smart_core/schema/checker/reconciler/matcher/result.rb', line 62

def contract_key_result(result)
  contract_keys_results << result
end

#each_result(&block) {|result| ... } ⇒ 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.

This method returns an undefined value.

]

Parameters:

  • block

Yields:

  • (result)

Yield Parameters:

Since:

  • 0.1.0

Version:

  • 0.8.0



51
52
53
54
# File 'lib/smart_core/schema/checker/reconciler/matcher/result.rb', line 51

def each_result(&block)
  contract_keys_results.each(&block)
  extra_keys_results.each(&block)
end

#extra_keys_result(result) ⇒ 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.

This method returns an undefined value.

]

Parameters:

Since:

  • 0.1.0

Version:

  • 0.8.0



75
76
77
# File 'lib/smart_core/schema/checker/reconciler/matcher/result.rb', line 75

def extra_keys_result(result)
  extra_keys_results << result
end