class YearMonthCommitStats
Public Class Methods
new()
click to toggle source
# File lib/gitstats/stats/commit/time.rb, line 32 def initialize @hash = Hash.new end
Public Instance Methods
update(commit)
click to toggle source
# File lib/gitstats/stats/commit/time.rb, line 36 def update(commit) yearmonth = YearMonth.new(commit[:time]) @hash[yearmonth] ||= AuthorsCommitStats.new @hash[yearmonth].update(commit) end