class MonthCommitStats

Public Class Methods

new() click to toggle source
# File lib/gitstats/stats/commit/time.rb, line 18
def initialize
  @hash = Hash.new
end

Public Instance Methods

update(commit) click to toggle source
# File lib/gitstats/stats/commit/time.rb, line 22
def update(commit)
  month = commit[:time].month
  @hash[month] ||= AuthorsCommitStats.new
  @hash[month].update(commit)
end