Class: Yobi::RestoreStatus

Inherits:
FancyHash show all
Defined in:
lib/yobi/repository/restore.rb,
sig/yobi.rbs

Overview

One "status" message from a live restore run. See https://restic.readthedocs.io/en/stable/075_scripting.html#restore.

Instance Method Summary collapse

Methods inherited from FancyHash

#initialize, #inspect, #pretty_print

Constructor Details

This class inherits a constructor from Yobi::FancyHash

Instance Method Details

#bytes_restoredInteger?

Returns:

  • (Integer, nil)


118
119
120
# File 'lib/yobi/repository/restore.rb', line 118

def bytes_restored
  self["bytes_restored"]
end

#files_restoredInteger?

Returns:

  • (Integer, nil)


110
111
112
# File 'lib/yobi/repository/restore.rb', line 110

def files_restored
  self["files_restored"]
end

#percent_doneFloat?

Returns:

  • (Float, nil)


102
103
104
# File 'lib/yobi/repository/restore.rb', line 102

def percent_done
  self["percent_done"]
end

#total_bytesInteger?

Returns:

  • (Integer, nil)


114
115
116
# File 'lib/yobi/repository/restore.rb', line 114

def total_bytes
  self["total_bytes"]
end

#total_filesInteger?

Returns:

  • (Integer, nil)


106
107
108
# File 'lib/yobi/repository/restore.rb', line 106

def total_files
  self["total_files"]
end