class ContributorsStats::UserData::Simple

fill in user data using minimal possible set of data

Public Class Methods

load(login, data, contributions) click to toggle source

fill in user data using minimal possible set of data

# File lib/plugins/contributors_stats/user_data/simple.rb, line 7
def self.load(login, data, contributions)
  {
    'avatar_url'    => data['avatar_url'],
    'name'          => login,
    'url'           => data['url'],
    'html_url'      => profile_url(login),
    'contributions' => contributions
  }
end
profile_url(username) click to toggle source

build github profile url for the given user name @param username [String] @return [String] github profile url

# File lib/plugins/contributors_stats/user_data/simple.rb, line 19
def self.profile_url(username)
  "https://github.com/#{username}"
end