Module: Ghee::API::Users
- Included in:
- Ghee
- Defined in:
- lib/ghee/api/users.rb
Overview
The Users module handles all of the Github User API endpoints
Defined Under Namespace
Classes: Proxy
Instance Method Summary collapse
-
#user ⇒ Object
Get authenticated user.
-
#users(user) ⇒ Object
Get a single user.
Instance Method Details
#user ⇒ Object
Get authenticated user
Returns json
57 58 59 |
# File 'lib/ghee/api/users.rb', line 57 def user Proxy.new(connection, '/user') end |
#users(user) ⇒ Object
Get a single user
user - String of user login
Returns json
67 68 69 |
# File 'lib/ghee/api/users.rb', line 67 def users(user) Proxy.new(connection, "/users/#{user}") end |