#octokit-experiment

Organizations

This is an array containing all of the organizations to which you are a member.

$ user.rels[:organizations].get.data.class
  => Array

Get the name (aka login) of the first organization.

$ user.rels[:organizations].get.data.first.login

Let's assume first org is what we want to work with.

See all repos?

$ user.rels[:organizations].get.data.first[:rels][:repos].head.data

get the name of the first repo

user.rels[:organizations].get.data[0][:rels][:repos].head.data[0].name

path to first repo

user.rels[:organizations].get.data[0][:rels][:repos].head.data[0].full_name

Resources

Octokit Readme https://github.com/octokit/octokit.rb/blob/master/README.md

Sawyer Class http://rubydoc.info/gems/sawyer/0.5.1/frames

this experiment was jump started with aspen