class AuthorsCommitStats

Public Class Methods

new() click to toggle source
Calls superclass method CommitStats::new
# File lib/gitstats/stats/commit/author.rb, line 4
def initialize
  super
  @hash = Hash.new
end

Public Instance Methods

update(commit) click to toggle source
Calls superclass method CommitStats#update
# File lib/gitstats/stats/commit/author.rb, line 9
def update(commit)
  super(commit)

  author = commit[:author]
  @hash[author] ||= CommitStats.new
  @hash[author].update(commit)
end