Class: Idml::Validation::Result
- Inherits:
-
Struct
- Object
- Struct
- Idml::Validation::Result
- Defined in:
- lib/idml/validation/result.rb
Overview
Immutable result of validating one part against its RNG schema.
#ok? is true when there are no errors. #errors is an Array of
Jing-formatted error strings (with line numbers).
Instance Attribute Summary collapse
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#ok ⇒ Object
Returns the value of attribute ok.
-
#part_name ⇒ Object
Returns the value of attribute part_name.
Instance Method Summary collapse
Instance Attribute Details
#errors ⇒ Object
Returns the value of attribute errors
8 9 10 |
# File 'lib/idml/validation/result.rb', line 8 def errors @errors end |
#ok ⇒ Object
Returns the value of attribute ok
8 9 10 |
# File 'lib/idml/validation/result.rb', line 8 def ok @ok end |
#part_name ⇒ Object
Returns the value of attribute part_name
8 9 10 |
# File 'lib/idml/validation/result.rb', line 8 def part_name @part_name end |
Instance Method Details
#ok? ⇒ Boolean
9 10 11 |
# File 'lib/idml/validation/result.rb', line 9 def ok? ok end |