123456789_123456789_123456789_123456789_123456789_

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

Class Method Details

.path(org) ⇒ String

Get the api path for an organization

Parameters:

  • org (String, Integer)

    GitHub organization login or id

Returns:

  • (String)

    Organization Api path

[ GitHub ]

  
# File 'lib/octokit/organization.rb', line 10

def self.path(org)
  case org
  when String
    "orgs/#{org}"
  when Integer
    "organizations/#{org}"
  end
end