class Avro::SchemaValidator::Result

Attributes

errors[R]

Public Class Methods

new() click to toggle source
   # File lib/avro/schema_validator.rb
28 def initialize
29   @errors = []
30 end

Public Instance Methods

<<(error) click to toggle source
   # File lib/avro/schema_validator.rb
32 def <<(error)
33   @errors << error
34 end
add_error(path, message) click to toggle source
   # File lib/avro/schema_validator.rb
36 def add_error(path, message)
37   self << "at #{path} #{message}"
38 end
failure?() click to toggle source
   # File lib/avro/schema_validator.rb
40 def failure?
41   @errors.any?
42 end
to_s() click to toggle source
   # File lib/avro/schema_validator.rb
44 def to_s
45   errors.join("\n")
46 end