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