Class: Hubtime::Activity::Year

Inherits:
Period
  • Object
show all
Defined in:
lib/hubtime/activity.rb

Instance Attribute Summary

Attributes inherited from Period

#children, #compiled, #example, #label, #repo_stats, #total_stats

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Period

#_first_child_key, #_last_child_key, #add, #additions, #child_keys, #commits, #compile!, #compiled?, #count, #default_stats, #deletions, #first!, #first?, #impact, #import, #initialize, #key_value, #last!, #last?, #repositories

Constructor Details

This class inherits a constructor from Hubtime::Activity::Period

Class Method Details

.child_classObject



233
234
235
# File 'lib/hubtime/activity.rb', line 233

def self.child_class
  Month
end

.display(time) ⇒ Object



229
230
231
# File 'lib/hubtime/activity.rb', line 229

def self.display(time)
  time.strftime("%Y")
end

Instance Method Details

#first_child_keyObject



237
238
239
# File 'lib/hubtime/activity.rb', line 237

def first_child_key
  "01"
end

#last_child_keyObject



241
242
243
# File 'lib/hubtime/activity.rb', line 241

def last_child_key
  "12"
end