Class: Github_user_data

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

Class Method Summary collapse

Class Method Details

.get_data(username) ⇒ Object



4
5
6
7
8
# File 'lib/github_user_data.rb', line 4

def self.get_data(username)
  client = Octokit::Client.new
  user = client.user username
  "Real name: #{user.name} \nCompany: #{user.company}\nMail: #{user.email}\nPublic repos: #{user.public_repos}\nFollowers: #{user.followers}\nFollowing: #{user.following}"
end