Class: Aias::Validator::ValidationResult

Inherits:
Data
  • Object
show all
Defined in:
lib/aias/validator.rb

Overview

Immutable value object returned by #validate.

Instance Attribute Summary collapse

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors

Returns:

  • (Object)

    the current value of errors



8
9
10
# File 'lib/aias/validator.rb', line 8

def errors
  @errors
end

#valid?Object (readonly)

Returns the value of attribute valid?

Returns:

  • (Object)

    the current value of valid?



8
9
10
# File 'lib/aias/validator.rb', line 8

def valid?
  @valid?
end