Class: Omnizip::Parity::Par2Repairer::RepairResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/omnizip/parity/par2_repairer.rb

Overview

Repair result

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#error_messageObject

Returns the value of attribute error_message

Returns:

  • (Object)

    the current value of error_message



19
20
21
# File 'lib/omnizip/parity/par2_repairer.rb', line 19

def error_message
  @error_message
end

#recovered_blocksObject

Returns the value of attribute recovered_blocks

Returns:

  • (Object)

    the current value of recovered_blocks



19
20
21
# File 'lib/omnizip/parity/par2_repairer.rb', line 19

def recovered_blocks
  @recovered_blocks
end

#recovered_filesObject

Returns the value of attribute recovered_files

Returns:

  • (Object)

    the current value of recovered_files



19
20
21
# File 'lib/omnizip/parity/par2_repairer.rb', line 19

def recovered_files
  @recovered_files
end

#successObject

Returns the value of attribute success

Returns:

  • (Object)

    the current value of success



19
20
21
# File 'lib/omnizip/parity/par2_repairer.rb', line 19

def success
  @success
end

#unrecoverableObject

Returns the value of attribute unrecoverable

Returns:

  • (Object)

    the current value of 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

Returns:

  • (Boolean)

    true if some files couldn't be recovered



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

Returns:

  • (Boolean)

    true if successful



30
31
32
# File 'lib/omnizip/parity/par2_repairer.rb', line 30

def success?
  success
end