Class: Wp2txt::Bz2Validator::ValidationResult
- Inherits:
-
Struct
- Object
- Struct
- Wp2txt::Bz2Validator::ValidationResult
- Defined in:
- lib/wp2txt/bz2_validator.rb
Overview
Validation result structure
Instance Attribute Summary collapse
-
#details ⇒ Object
Returns the value of attribute details.
-
#error_type ⇒ Object
Returns the value of attribute error_type.
-
#message ⇒ Object
Returns the value of attribute message.
-
#valid ⇒ Object
Returns the value of attribute valid.
Instance Method Summary collapse
Instance Attribute Details
#details ⇒ Object
Returns the value of attribute details
21 22 23 |
# File 'lib/wp2txt/bz2_validator.rb', line 21 def details @details end |
#error_type ⇒ Object
Returns the value of attribute error_type
21 22 23 |
# File 'lib/wp2txt/bz2_validator.rb', line 21 def error_type @error_type end |
#message ⇒ Object
Returns the value of attribute message
21 22 23 |
# File 'lib/wp2txt/bz2_validator.rb', line 21 def @message end |
#valid ⇒ Object
Returns the value of attribute valid
21 22 23 |
# File 'lib/wp2txt/bz2_validator.rb', line 21 def valid @valid end |
Instance Method Details
#to_s ⇒ Object
26 27 28 |
# File 'lib/wp2txt/bz2_validator.rb', line 26 def to_s valid ? "Valid bz2 file" : "Invalid: #{}" end |
#valid? ⇒ Boolean
22 23 24 |
# File 'lib/wp2txt/bz2_validator.rb', line 22 def valid? valid end |