Class: SmartCore::Schema::Checker::Rules::Result::Failure Private
- Defined in:
- lib/smart_core/schema/checker/rules/result/failure.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
- #error ⇒ Symbol readonly
- #message ⇒ String readonly
Attributes inherited from Base
Instance Method Summary collapse
- #failure? ⇒ Boolean
- #initialize(key:, value:, error:, message:) ⇒ void constructor private
Methods inherited from Base
Constructor Details
#initialize(key:, value:, error:, message:) ⇒ 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.
27 28 29 30 31 |
# File 'lib/smart_core/schema/checker/rules/result/failure.rb', line 27 def initialize(key:, value:, error:, message:) super(key: key, value: value) @error = error @message = end |
Instance Attribute Details
#error ⇒ Symbol (readonly)
11 12 13 |
# File 'lib/smart_core/schema/checker/rules/result/failure.rb', line 11 def error @error end |
#message ⇒ String (readonly)
17 18 19 |
# File 'lib/smart_core/schema/checker/rules/result/failure.rb', line 17 def @message end |
Instance Method Details
#failure? ⇒ Boolean
37 38 39 |
# File 'lib/smart_core/schema/checker/rules/result/failure.rb', line 37 def failure? true end |