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