Module: Ghee::API::Users

Included in:
Ghee
Defined in:
lib/ghee/api/keys.rb,
lib/ghee/api/users.rb,
lib/ghee/api/emails.rb,
lib/ghee/api/watchers.rb,
lib/ghee/api/followers.rb

Overview

The Users module handles all of the Github User API endpoints

Defined Under Namespace

Modules: Emails, Keys, Memberships Classes: Proxy

Instance Method Summary collapse

Instance Method Details

#user(&block) ⇒ Object

Get authenticated user

Returns json



98
99
100
# File 'lib/ghee/api/users.rb', line 98

def user(&block)
  Proxy.new(connection, './user', nil, &block)
end

#users(user) ⇒ Object

Get a single user

user - String of user login

Returns json



108
109
110
# File 'lib/ghee/api/users.rb', line 108

def users(user)
  Proxy.new(connection, "./users/#{user}")
end