Class: Yobi::KeepReason

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

Overview

Why one snapshot survived a 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>

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

Returns:

  • (Array<String>)

    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

#snapshotYobi::Snapshot

Returns:



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

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