Class: SmartCore::Types::Primitive::InvariantControl::Result Private
- Inherits:
-
Object
- Object
- SmartCore::Types::Primitive::InvariantControl::Result
- Defined in:
- lib/smart_core/types/primitive/invariant_control/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
- #chain_results ⇒ Array<SmartCore::Types::Primitive::InvariantControl::Chain::Result> readonly private
- #single_results ⇒ Array<SmartCore::Types::Primitive::InvariantControl::Single::Result> readonly private
Instance Method Summary collapse
- #add_chain_result(result) ⇒ void private
- #add_single_result(result) ⇒ void private
- #failure? ⇒ Boolean private
- #initialize(invariant_control, checked_value) ⇒ void constructor private
- #invariant_errors ⇒ Array<String> private
- #success? ⇒ Boolean private
Constructor Details
#initialize(invariant_control, checked_value) ⇒ 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.
24 25 26 27 28 29 |
# File 'lib/smart_core/types/primitive/invariant_control/result.rb', line 24 def initialize(invariant_control, checked_value) @invariant_control = invariant_control @checked_value = checked_value @chain_results = [] @single_results = [] end |
Instance Attribute Details
#chain_results ⇒ Array<SmartCore::Types::Primitive::InvariantControl::Chain::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.
10 11 12 |
# File 'lib/smart_core/types/primitive/invariant_control/result.rb', line 10 def chain_results @chain_results end |
#single_results ⇒ Array<SmartCore::Types::Primitive::InvariantControl::Single::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.
16 17 18 |
# File 'lib/smart_core/types/primitive/invariant_control/result.rb', line 16 def single_results @single_results end |
Instance Method Details
#add_chain_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.
60 61 62 |
# File 'lib/smart_core/types/primitive/invariant_control/result.rb', line 60 def add_chain_result(result) chain_results << result end |
#add_single_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.
69 70 71 |
# File 'lib/smart_core/types/primitive/invariant_control/result.rb', line 69 def add_single_result(result) single_results << result end |
#failure? ⇒ 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.
51 52 53 |
# File 'lib/smart_core/types/primitive/invariant_control/result.rb', line 51 def failure? !success? end |
#invariant_errors ⇒ Array<String>
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.
35 36 37 |
# File 'lib/smart_core/types/primitive/invariant_control/result.rb', line 35 def invariant_errors collect_invariant_errors end |
#success? ⇒ 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.
43 44 45 |
# File 'lib/smart_core/types/primitive/invariant_control/result.rb', line 43 def success? chain_results.all(&:success?) && single_results.all?(&:success?) end |