class DayOfWeekCommitStats
Public Class Methods
new()
click to toggle source
# File lib/gitstats/stats/commit/time.rb, line 78 def initialize @hash = Hash.new end
Public Instance Methods
update(commit)
click to toggle source
# File lib/gitstats/stats/commit/time.rb, line 82 def update(commit) day = commit[:time].wday @hash[day] ||= HourCommitStats.new @hash[day].update(commit) end