Class: GitReporting::Report::Group::Year

Inherits:
Base show all
Defined in:
lib/git_reporting/report/group.rb

Instance Attribute Summary

Attributes inherited from GitReporting::Report

#children, #key

Class Method Summary collapse

Methods inherited from GitReporting::Report

#append_child, build, #initialize, new_from_collection, #print, #time, #to_s

Constructor Details

This class inherits a constructor from GitReporting::Report

Class Method Details

.key_for_commit(commit) ⇒ Object



30
31
32
# File 'lib/git_reporting/report/group.rb', line 30

def self.key_for_commit(commit)
  commit.timestamp.beginning_of_year
end