Class: JSI::Validation::ValidityResult

Inherits:
Result
  • Object
show all
Defined in:
lib/jsi/validation/result.rb

Overview

a result indicating only whether an instance is valid against its schemas

Instance Method Summary collapse

Methods inherited from Result

#builder

Methods included from Util::FingerprintHash

#==, #hash

Methods included from Util::Virtual

#virtual_method

Constructor Details

#initialize(valid) ⇒ ValidityResult

Returns a new instance of ValidityResult.


193
194
195
# File 'lib/jsi/validation/result.rb', line 193

def initialize(valid)
  @valid = valid
end

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)

197
198
199
# File 'lib/jsi/validation/result.rb', line 197

def valid?
  @valid
end