Class: Octokit::User
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/octokit/user.rb |
Overview
GitHub user class to generate API path urls
Class Method Summary
-
.path(user) ⇒ String
Get the api path for a user.
Class Method Details
.path(user) ⇒ String
Get the api path for a user
# File 'lib/octokit/user.rb', line 10
def self.path(user) case user when String "users/#{user}" when Integer "user/#{user}" else 'user' end end