Class: Yobi::KeepReason

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

Overview

Why one snapshot survived a Yobi::Repository#forget run.

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

#matchesArray[String]

Restic's own human-readable rule-match strings, e.g. "last snapshot".

Returns:

  • (Array[String])


112
113
114
# File 'lib/yobi/repository/forget.rb', line 112

def matches
  @matches ||= self["matches"] || []
end

#snapshotSnapshot

The Yobi::Snapshot that was kept.

Returns:



107
108
109
# File 'lib/yobi/repository/forget.rb', line 107

def snapshot
  @snapshot ||= Yobi::Snapshot.new(self["snapshot"])
end