Class: Lutaml::Xsd::SpecComplianceReport
- Inherits:
-
Object
- Object
- Lutaml::Xsd::SpecComplianceReport
- Defined in:
- lib/lutaml/xsd/xsd_spec_validator.rb
Overview
Value object for validation report
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#schemas_checked ⇒ Object
readonly
Returns the value of attribute schemas_checked.
-
#valid ⇒ Object
readonly
Returns the value of attribute valid.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
-
#warnings ⇒ Object
readonly
Returns the value of attribute warnings.
Instance Method Summary collapse
-
#initialize(version:, valid:, errors:, warnings:, schemas_checked:) ⇒ SpecComplianceReport
constructor
A new instance of SpecComplianceReport.
- #to_h ⇒ Object
Constructor Details
#initialize(version:, valid:, errors:, warnings:, schemas_checked:) ⇒ SpecComplianceReport
Returns a new instance of SpecComplianceReport.
315 316 317 318 319 320 321 |
# File 'lib/lutaml/xsd/xsd_spec_validator.rb', line 315 def initialize(version:, valid:, errors:, warnings:, schemas_checked:) @version = version @valid = valid @errors = errors @warnings = warnings @schemas_checked = schemas_checked end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
313 314 315 |
# File 'lib/lutaml/xsd/xsd_spec_validator.rb', line 313 def errors @errors end |
#schemas_checked ⇒ Object (readonly)
Returns the value of attribute schemas_checked.
313 314 315 |
# File 'lib/lutaml/xsd/xsd_spec_validator.rb', line 313 def schemas_checked @schemas_checked end |
#valid ⇒ Object (readonly)
Returns the value of attribute valid.
313 314 315 |
# File 'lib/lutaml/xsd/xsd_spec_validator.rb', line 313 def valid @valid end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
313 314 315 |
# File 'lib/lutaml/xsd/xsd_spec_validator.rb', line 313 def version @version end |
#warnings ⇒ Object (readonly)
Returns the value of attribute warnings.
313 314 315 |
# File 'lib/lutaml/xsd/xsd_spec_validator.rb', line 313 def warnings @warnings end |
Instance Method Details
#to_h ⇒ Object
323 324 325 326 327 328 329 330 331 332 333 |
# File 'lib/lutaml/xsd/xsd_spec_validator.rb', line 323 def to_h { xsd_version: version, valid: valid, schemas_checked: schemas_checked, errors: errors, warnings: warnings, error_count: errors.size, warning_count: warnings.size, } end |