Class: PDFUtilities::PDFValidator::ValidationResult
- Inherits:
-
Object
- Object
- PDFUtilities::PDFValidator::ValidationResult
- Defined in:
- lib/pdf_utilities/pdf_validator.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
Returns the value of attribute errors.
Instance Method Summary collapse
- #add_error(error_message) ⇒ Object
-
#initialize ⇒ ValidationResult
constructor
A new instance of ValidationResult.
- #valid_pdf? ⇒ Boolean
Constructor Details
#initialize ⇒ ValidationResult
Returns a new instance of ValidationResult.
32 33 34 |
# File 'lib/pdf_utilities/pdf_validator.rb', line 32 def initialize @errors = [] end |
Instance Attribute Details
#errors ⇒ Object
Returns the value of attribute errors.
30 31 32 |
# File 'lib/pdf_utilities/pdf_validator.rb', line 30 def errors @errors end |
Instance Method Details
#add_error(error_message) ⇒ Object
36 37 38 |
# File 'lib/pdf_utilities/pdf_validator.rb', line 36 def add_error() @errors << end |
#valid_pdf? ⇒ Boolean
40 41 42 |
# File 'lib/pdf_utilities/pdf_validator.rb', line 40 def valid_pdf? @errors.empty? end |