Class: Omnizip::Parity::Par2Repairer::RepairResult
- Inherits:
-
Struct
- Object
- Struct
- Omnizip::Parity::Par2Repairer::RepairResult
- Defined in:
- lib/omnizip/parity/par2_repairer.rb
Overview
Repair result
Instance Attribute Summary collapse
-
#error_message ⇒ Object
Returns the value of attribute error_message.
-
#recovered_blocks ⇒ Object
Returns the value of attribute recovered_blocks.
-
#recovered_files ⇒ Object
Returns the value of attribute recovered_files.
-
#success ⇒ Object
Returns the value of attribute success.
-
#unrecoverable ⇒ Object
Returns the value of attribute unrecoverable.
Instance Method Summary collapse
-
#has_unrecoverable? ⇒ Boolean
Check if any files remain unrecoverable.
-
#success? ⇒ Boolean
Check if repair was successful.
Instance Attribute Details
#error_message ⇒ Object
Returns the value of attribute error_message
19 20 21 |
# File 'lib/omnizip/parity/par2_repairer.rb', line 19 def @error_message end |
#recovered_blocks ⇒ Object
Returns the value of attribute recovered_blocks
19 20 21 |
# File 'lib/omnizip/parity/par2_repairer.rb', line 19 def recovered_blocks @recovered_blocks end |
#recovered_files ⇒ Object
Returns the value of attribute recovered_files
19 20 21 |
# File 'lib/omnizip/parity/par2_repairer.rb', line 19 def recovered_files @recovered_files end |
#success ⇒ Object
Returns the value of attribute success
19 20 21 |
# File 'lib/omnizip/parity/par2_repairer.rb', line 19 def success @success end |
#unrecoverable ⇒ Object
Returns the value of attribute unrecoverable
19 20 21 |
# File 'lib/omnizip/parity/par2_repairer.rb', line 19 def unrecoverable @unrecoverable end |
Instance Method Details
#has_unrecoverable? ⇒ Boolean
Check if any files remain unrecoverable
37 38 39 |
# File 'lib/omnizip/parity/par2_repairer.rb', line 37 def has_unrecoverable? !unrecoverable.empty? end |
#success? ⇒ Boolean
Check if repair was successful
30 31 32 |
# File 'lib/omnizip/parity/par2_repairer.rb', line 30 def success? success end |