Class: SmartCore::Schema::Checker::Rules::Result::Base Private
- Inherits:
-
Object
- Object
- SmartCore::Schema::Checker::Rules::Result::Base
- Defined in:
- lib/smart_core/schema/checker/rules/result/base.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
- #key ⇒ String readonly
- #value ⇒ Any readonly
Instance Method Summary collapse
- #failure? ⇒ Boolean
- #initialize(key:, value:) ⇒ void constructor private
- #success? ⇒ Boolean
Constructor Details
#initialize(key:, 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 |
# File 'lib/smart_core/schema/checker/rules/result/base.rb', line 24 def initialize(key:, value:) @key = key @value = value end |
Instance Attribute Details
#key ⇒ String (readonly)
10 11 12 |
# File 'lib/smart_core/schema/checker/rules/result/base.rb', line 10 def key @key end |
#value ⇒ Any (readonly)
16 17 18 |
# File 'lib/smart_core/schema/checker/rules/result/base.rb', line 16 def value @value end |
Instance Method Details
#failure? ⇒ Boolean
41 42 43 |
# File 'lib/smart_core/schema/checker/rules/result/base.rb', line 41 def failure? false end |
#success? ⇒ Boolean
33 34 35 |
# File 'lib/smart_core/schema/checker/rules/result/base.rb', line 33 def success? false end |