Class: Yobi::DiffStat

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

Overview

The "added" / "removed" sub-object of a Yobi::DiffStatistics message.

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

#bytesInteger

Returns:

  • (Integer)


142
143
144
# File 'lib/yobi/repository/diff.rb', line 142

def bytes
  self["bytes"] || 0
end

#data_blobsInteger

Returns:

  • (Integer)


134
135
136
# File 'lib/yobi/repository/diff.rb', line 134

def data_blobs
  self["data_blobs"] || 0
end

#dirsInteger

Returns:

  • (Integer)


126
127
128
# File 'lib/yobi/repository/diff.rb', line 126

def dirs
  self["dirs"] || 0
end

#filesInteger

Returns:

  • (Integer)


122
123
124
# File 'lib/yobi/repository/diff.rb', line 122

def files
  self["files"] || 0
end

#othersInteger

Returns:

  • (Integer)


130
131
132
# File 'lib/yobi/repository/diff.rb', line 130

def others
  self["others"] || 0
end

#tree_blobsInteger

Returns:

  • (Integer)


138
139
140
# File 'lib/yobi/repository/diff.rb', line 138

def tree_blobs
  self["tree_blobs"] || 0
end