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 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)


173
174
175
# File 'lib/yobi/repository/diff.rb', line 173

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

#data_blobsInteger

Returns:

  • (Integer)


163
164
165
# File 'lib/yobi/repository/diff.rb', line 163

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

#dirsInteger

Returns:

  • (Integer)


153
154
155
# File 'lib/yobi/repository/diff.rb', line 153

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

#filesInteger

Returns:

  • (Integer)


148
149
150
# File 'lib/yobi/repository/diff.rb', line 148

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

#othersInteger

Returns:

  • (Integer)


158
159
160
# File 'lib/yobi/repository/diff.rb', line 158

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

#tree_blobsInteger

Returns:

  • (Integer)


168
169
170
# File 'lib/yobi/repository/diff.rb', line 168

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