Class: Pdfrb::Conformance::Violation
- Inherits:
-
Struct
- Object
- Struct
- Pdfrb::Conformance::Violation
- Defined in:
- lib/pdfrb/conformance/rule.rb
Overview
A rule violation found during validation.
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
-
#object ⇒ Object
Returns the value of attribute object.
-
#rule_id ⇒ Object
Returns the value of attribute rule_id.
-
#severity ⇒ Object
Returns the value of attribute severity.
-
#spec_clause ⇒ Object
Returns the value of attribute spec_clause.
Instance Method Summary collapse
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message
19 20 21 |
# File 'lib/pdfrb/conformance/rule.rb', line 19 def @message end |
#object ⇒ Object
Returns the value of attribute object
19 20 21 |
# File 'lib/pdfrb/conformance/rule.rb', line 19 def object @object end |
#rule_id ⇒ Object
Returns the value of attribute rule_id
19 20 21 |
# File 'lib/pdfrb/conformance/rule.rb', line 19 def rule_id @rule_id end |
#severity ⇒ Object
Returns the value of attribute severity
19 20 21 |
# File 'lib/pdfrb/conformance/rule.rb', line 19 def severity @severity end |
#spec_clause ⇒ Object
Returns the value of attribute spec_clause
19 20 21 |
# File 'lib/pdfrb/conformance/rule.rb', line 19 def spec_clause @spec_clause end |
Instance Method Details
#error? ⇒ Boolean
21 |
# File 'lib/pdfrb/conformance/rule.rb', line 21 def error? = severity == :error |
#warning? ⇒ Boolean
22 |
# File 'lib/pdfrb/conformance/rule.rb', line 22 def warning? = severity == :warning |