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. 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)


138
139
140
# File 'lib/yobi/repository/restore.rb', line 138

def bytes_restored
  self["bytes_restored"]
end

#files_restoredInteger?

Returns:

  • (Integer, nil)


128
129
130
# File 'lib/yobi/repository/restore.rb', line 128

def files_restored
  self["files_restored"]
end

#percent_doneFloat?

Returns:

  • (Float, nil)


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

def percent_done
  self["percent_done"]
end

#total_bytesInteger?

Returns:

  • (Integer, nil)


133
134
135
# File 'lib/yobi/repository/restore.rb', line 133

def total_bytes
  self["total_bytes"]
end

#total_filesInteger?

Returns:

  • (Integer, nil)


123
124
125
# File 'lib/yobi/repository/restore.rb', line 123

def total_files
  self["total_files"]
end