Class: GithubApiClient

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/github_api_client.rb

Instance Method Summary collapse

Instance Method Details

#followers(username) ⇒ Object



5
6
7
# File 'lib/github_api_client.rb', line 5

def followers(username)
  self.class.get("/#{username}/followers")
end

#repos(username) ⇒ Object



9
10
11
# File 'lib/github_api_client.rb', line 9

def repos(username)
  self.class.get("/#{username}/repos")
end

#user(username) ⇒ Object



13
14
15
# File 'lib/github_api_client.rb', line 13

def user(username)
  self.class.get("/#{username}")
end