Class: Yobi::BackupSummary

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

Overview

The "summary" message from a backup run, the final result once the command finishes. Dispatched to Repository#backup's block, and also what Yobi::BackupOutcome#summary returns. https://restic.readthedocs.io/en/stable/075_scripting.html#summary

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

#backup_endTime?

Returns:

  • (Time, nil)


198
199
200
# File 'lib/yobi/repository/backup.rb', line 198

def backup_end
  @backup_end ||= Time.parse(self["backup_end"]) if self["backup_end"]
end

#backup_startTime?

Returns:

  • (Time, nil)


193
194
195
# File 'lib/yobi/repository/backup.rb', line 193

def backup_start
  @backup_start ||= Time.parse(self["backup_start"]) if self["backup_start"]
end