Class: StructuredReader::JSONReader::ValidatorContext::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/structured_reader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorsObject

Returns the value of attribute errors

Returns:

  • (Object)

    the current value of errors



347
348
349
# File 'lib/structured_reader.rb', line 347

def errors
  @errors
end

#objectObject

Returns the value of attribute object

Returns:

  • (Object)

    the current value of object



347
348
349
# File 'lib/structured_reader.rb', line 347

def object
  @object
end

Instance Method Details

#ok?Boolean

Returns:

  • (Boolean)


348
349
350
# File 'lib/structured_reader.rb', line 348

def ok?
  errors.empty?
end