gitlab-org--gitlab-foss/lib/github/user.rb
2017-04-24 16:17:52 -03:00

23 lines
308 B
Ruby

module Github
class User
attr_reader :username
def initialize(username)
@username = username
end
def get
client.get(user_url).body
end
private
def client
@client ||= Github::Client.new
end
def user_url
"/users/#{username}"
end
end
end