Class: Ghit::Stats::PunchCard
- Inherits:
-
Object
- Object
- Ghit::Stats::PunchCard
- Defined in:
- lib/ghit/stats/punch_card.rb
Class Method Summary collapse
Instance Method Summary collapse
- #get ⇒ Object
-
#initialize ⇒ PunchCard
constructor
A new instance of PunchCard.
Constructor Details
Class Method Details
.get! ⇒ Object
6 7 8 |
# File 'lib/ghit/stats/punch_card.rb', line 6 def get! new.get end |
Instance Method Details
#get ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/ghit/stats/punch_card.rb', line 16 def get punch_card_data = fetch_punch_card_data commits_by_day = group_data_by_day punch_card_data print_hours_line commits_by_day.each do |day_ordinal, daily_commits_per_hour| print get_weekday day_ordinal print_commits_count daily_commits_per_hour end end |