Class: Yobi::KeepReason
- Defined in:
- lib/yobi/repository/forget.rb,
sig/yobi.rbs
Overview
Why one snapshot survived a Repository#forget run.
Instance Method Summary collapse
-
#matches ⇒ Array<String>
Restic's own human-readable rule-match strings, e.g.
- #snapshot ⇒ Yobi::Snapshot
Methods inherited from FancyHash
#initialize, #inspect, #pretty_print
Constructor Details
This class inherits a constructor from Yobi::FancyHash
Instance Method Details
#matches ⇒ Array<String>
Returns Restic's own human-readable rule-match strings, e.g. "last snapshot".
118 119 120 |
# File 'lib/yobi/repository/forget.rb', line 118 def matches @matches ||= self["matches"] || [] end |
#snapshot ⇒ Yobi::Snapshot
113 114 115 |
# File 'lib/yobi/repository/forget.rb', line 113 def snapshot @snapshot ||= Yobi::Snapshot.new(self["snapshot"]) end |