Skip to content

Instantly share code, notes, and snippets.

@hannahherbig
Created November 29, 2011 00:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hannahherbig/1402723 to your computer and use it in GitHub Desktop.
Save hannahherbig/1402723 to your computer and use it in GitHub Desktop.
>> o = GitHub.org('github')
=> #<GitHub::Organization avatar_url="https://secure.gravatar.com/avatar/61024896f291303615bcd4f7a0dcfb74?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png" blog="https://github.com/about" company=nil created_at="2008-05-11T04:37:31Z" email="support@github.com" followers=622 following=0 html_url="https://github.com/github" id=9919 location="San Francisco, CA" login="github" name="GitHub" public_gists=0 public_repos=36 type="Organization" url="https://api.github.com/orgs/github">
>> o.login
=> "github"
>> o.id
=> 9919
>> o.company
=> nil # yes, this is right. it's nil above, which is what the api returns for whatever reason
>> o.type
=> "Organization"
>> o.followers
=> 622
>> o.location
=> "San Francisco, CA"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment