Class: Git::Heatmap::Daily

Inherits:
Period
  • Object
show all
Defined in:
lib/git/heatmap/period.rb

Instance Method Summary collapse

Methods inherited from Period

#aggregate, #between, #mktime

Instance Method Details

#key(t, p = 0) ⇒ Object



82
83
84
# File 'lib/git/heatmap/period.rb', line 82

def key(t, p = 0)
  mktime(t.year, t.month, t.day) + (3600 * 24 * p)
end

#nameObject



78
79
80
# File 'lib/git/heatmap/period.rb', line 78

def name
  "Days"
end