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
41 42 43 |
# File 'lib/uniword/validation/report/layer_result.rb', line 41 def errors issues.select(&:error?) end |
#fail? ⇒ Boolean
37 38 39 |
# File 'lib/uniword/validation/report/layer_result.rb', line 37 def fail? status == "fail" end |
#infos ⇒ Object
49 50 51 |
# File 'lib/uniword/validation/report/layer_result.rb', line 49 def infos issues.select(&:info?) end |
#notices ⇒ Object
53 54 55 |
# File 'lib/uniword/validation/report/layer_result.rb', line 53 def notices issues.select(&:notice?) end |
#pass? ⇒ Boolean
33 34 35 |
# File 'lib/uniword/validation/report/layer_result.rb', line 33 def pass? status == "pass" end |
#warnings ⇒ Object
45 46 47 |
# File 'lib/uniword/validation/report/layer_result.rb', line 45 def warnings issues.select(&:warning?) end |