Class: Uniword::Validation::Report::LayerResult
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Uniword::Validation::Report::LayerResult
- Defined in:
- lib/uniword/validation/report/layer_result.rb
Overview
Result from a single validation layer.
Contains the layer name, pass/fail status, timing, and all issues found.
Instance Method Summary collapse
- #errors ⇒ Object
- #fail? ⇒ Boolean
- #infos ⇒ Object
- #notices ⇒ Object
- #pass? ⇒ Boolean
- #warnings ⇒ Object
Instance Method Details
#errors ⇒ Object
40 41 42 |
# File 'lib/uniword/validation/report/layer_result.rb', line 40 def errors issues.select(&:error?) end |
#fail? ⇒ Boolean
36 37 38 |
# File 'lib/uniword/validation/report/layer_result.rb', line 36 def fail? status == "fail" end |
#infos ⇒ Object
48 49 50 |
# File 'lib/uniword/validation/report/layer_result.rb', line 48 def infos issues.select(&:info?) end |
#notices ⇒ Object
52 53 54 |
# File 'lib/uniword/validation/report/layer_result.rb', line 52 def notices issues.select(&:notice?) end |
#pass? ⇒ Boolean
32 33 34 |
# File 'lib/uniword/validation/report/layer_result.rb', line 32 def pass? status == "pass" end |
#warnings ⇒ Object
44 45 46 |
# File 'lib/uniword/validation/report/layer_result.rb', line 44 def warnings issues.select(&:warning?) end |