Class: Yobi::ForgetReason
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Yobi::ForgetReason
- 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
Instance Method Details
#matches ⇒ Array<String>
Returns Restic's own human-readable rule-match strings, e.g. "last snapshot".
160 161 162 |
# File 'lib/yobi/repository/forget.rb', line 160 def matches @matches ||= self["matches"] || [] end |
#snapshot ⇒ Yobi::Snapshot
155 156 157 |
# File 'lib/yobi/repository/forget.rb', line 155 def snapshot @snapshot ||= Yobi::Snapshot.new(self["snapshot"]) end |