Class: GithubScore::Score

Inherits:
Object
  • Object
show all
Defined in:
lib/github_score.rb

Class Method Summary collapse

Class Method Details

.group_issue_types(username) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/github_score.rb', line 11

def self.group_issue_types(username)
  json_data = get_user_stats(username)
  grouped_counts = json_data.group_by { |w| w["type"] }.inject({}) do |tmphash, (k,v)|
    tmphash[k.to_sym] = v.size
    tmphash
  end
end