Class: JSI::Validation::ValidityResult
- Defined in:
- lib/jsi/validation/result.rb,
lib/jsi/validation/result.rb
Overview
a result indicating only whether an instance is valid against its schemas
Instance Method Summary collapse
-
#initialize(valid) ⇒ ValidityResult
constructor
A new instance of ValidityResult.
- #jsi_fingerprint ⇒ Object private
- #valid? ⇒ Boolean
Constructor Details
#initialize(valid) ⇒ ValidityResult
Returns a new instance of ValidityResult.
178 179 180 |
# File 'lib/jsi/validation/result.rb', line 178 def initialize(valid) @valid = valid end |
Instance Method Details
#jsi_fingerprint ⇒ Object
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.
188 189 190 191 192 193 |
# File 'lib/jsi/validation/result.rb', line 188 def jsi_fingerprint { class: self.class, valid: valid?, }.freeze end |
#valid? ⇒ Boolean
182 183 184 |
# File 'lib/jsi/validation/result.rb', line 182 def valid? @valid end |