Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@oz
Created May 19, 2016 15:20
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 oz/e6952c3a4095e354f21405015f648212 to your computer and use it in GitHub Desktop.
Save oz/e6952c3a4095e354f21405015f648212 to your computer and use it in GitHub Desktop.
Not sure if... ¬¬
client = Octokit::Client.new(...)
repo = client.repo('oz/osdb')
repo[:owner].class # => Sawyer::Resource
repo.to_h[:owner].class # => Sawyer::Resource
repo.to_hash[:owner].class # => Sawyer::Resource
repo.to_attrs[:owner].class # => Hash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment