Class: Yobi::DiffChange

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/yobi/repository/diff.rb,
sig/yobi.rbs

Overview

One "change" message from a diff run. modifier is Restic's own single-character code: "+" added, "-" removed, "U" metadata updated, "M" content modified, "T" type changed, "?" bitrot detected.

Instance Method Summary collapse

Instance Method Details

#modifierString

Returns:

  • (String)


69
70
71
# File 'lib/yobi/repository/diff.rb', line 69

def modifier
  self["modifier"]
end

#pathString

Returns:

  • (String)


64
65
66
# File 'lib/yobi/repository/diff.rb', line 64

def path
  self["path"]
end