Class: Yobi::DiffStatistics
- Defined in:
- lib/yobi/repository/diff.rb,
sig/yobi.rbs
Overview
The "statistics" message from a diff run, the final result once the
command finishes. Dispatched to Yobi::DiffOutcome#statistics.
Instance Method Summary collapse
-
#added ⇒ DiffStat
A Yobi::DiffStat of what was added.
- #changed_files ⇒ Integer
-
#removed ⇒ DiffStat
A Yobi::DiffStat of what was removed.
- #source_snapshot ⇒ String?
- #target_snapshot ⇒ String?
Methods inherited from FancyHash
#initialize, #inspect, #pretty_print
Constructor Details
This class inherits a constructor from Yobi::FancyHash
Instance Method Details
#added ⇒ DiffStat
A Yobi::DiffStat of what was added.
110 111 112 |
# File 'lib/yobi/repository/diff.rb', line 110 def added @added ||= DiffStat.new(self["added"] || {}) end |
#changed_files ⇒ Integer
105 106 107 |
# File 'lib/yobi/repository/diff.rb', line 105 def changed_files self["changed_files"] || 0 end |
#removed ⇒ DiffStat
A Yobi::DiffStat of what was removed.
115 116 117 |
# File 'lib/yobi/repository/diff.rb', line 115 def removed @removed ||= DiffStat.new(self["removed"] || {}) end |
#source_snapshot ⇒ String?
97 98 99 |
# File 'lib/yobi/repository/diff.rb', line 97 def source_snapshot self["source_snapshot"] end |
#target_snapshot ⇒ String?
101 102 103 |
# File 'lib/yobi/repository/diff.rb', line 101 def target_snapshot self["target_snapshot"] end |