Class: SmartCore::Schema::Checker::Reconciler::Matcher::Result Private
- Inherits:
-
Object
- Object
- SmartCore::Schema::Checker::Reconciler::Matcher::Result
- 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.
Instance Attribute Summary collapse
- #contract_keys_results ⇒ SmartCore::Schema::Checker::Rules::Verifier::Result readonly private
-
#extra_keys_results ⇒ SmartCore::Schema::Checker::Rules::ExtraKeys::Success, SmartCore::Schema::Checker::Rules::ExtraKeys::Failure
readonly
private
].
- #verifiable_hash ⇒ Hash<String|Symbol,Any> readonly private
Instance Method Summary collapse
- #complete! ⇒ SmartCore::Schema::Result private
- #contract_key_result(result) ⇒ void private
-
#each_result(&block) {|result| ... } ⇒ void
private
].
-
#extra_keys_result(result) ⇒ void
private
].
- #initialize(verifiable_hash) ⇒ void constructor private
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.
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_results ⇒ SmartCore::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_results ⇒ SmartCore::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.
]
25 26 27 |
# File 'lib/smart_core/schema/checker/reconciler/matcher/result.rb', line 25 def extra_keys_results @extra_keys_results end |
#verifiable_hash ⇒ Hash<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.
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.
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.
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.
]
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.
]
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 |