Skip to content

Instantly share code, notes, and snippets.

@lolmaus
Last active December 17, 2015 07:58
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 lolmaus/5576260 to your computer and use it in GitHub Desktop.
Save lolmaus/5576260 to your computer and use it in GitHub Desktop.
An example of an object returned by github_api (as reported by Ruby inspect).
#<Github::ResponseWrapper
@body="#<Hashie::Mash
comments=0
comments_url="https://api.github.com/gists/5567591/comments"
commits_url="https://api.github.com/gists/5567591/commits"
created_at="2013-05-13T11:05:44Z" description=""
files=#<Hashie::Mash
foo.html=#<Hashie::Mash
content="<h1>Yay!</h1>"
filename="foo.html"
language="HTML"
raw_url="https://gist.github.com/raw/5567591/e8d99234e7de27c5ffc56ae726ba9573adc72d81/foo.html"
size=13
type="text/html"
>
foo.sass=#<Hashie::Mash
content="html\n background-color: red\n float: right"
filename="foo.sass"
language="Sass"
raw_url="https://gist.github.com/raw/5567591/77ff91aecd5581c62d3ed831eca8000ae7adcbba/foo.sass"
size=43
type="text/plain"
>
>
forks=[]
forks_url="https://api.github.com/gists/5567591/forks"
git_pull_url="https://gist.github.com/5567591.git"
git_push_url="https://gist.github.com/5567591.git"
history=[
#<Hashie::Mash
change_status=#<Hashie::Mash
additions=2
deletions=2
total=4
>
committed_at="2013-05-13T17:03:09Z"
url="https://api.github.com/gists/5567591/ebc28f919ed371fcf5640ff1f4e25e60e1cdcf3c"
user=#<Hashie::Mash
avatar_url="https://secure.gravatar.com/avatar/d40e419b14bfe393b07206602ae0271a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png"
events_url="https://api.github.com/users/lolmaus/events{/privacy}"
followers_url="https://api.github.com/users/lolmaus/followers"
following_url="https://api.github.com/users/lolmaus/following{/other_user}"
gists_url="https://api.github.com/users/lolmaus/gists{/gist_id}"
gravatar_id="d40e419b14bfe393b07206602ae0271a"
html_url="https://github.com/lolmaus"
id=200884
login="lolmaus"
organizations_url="https://api.github.com/users/lolmaus/orgs"
received_events_url="https://api.github.com/users/lolmaus/received_events"
repos_url="https://api.github.com/users/lolmaus/repos"
starred_url="https://api.github.com/users/lolmaus/starred{/owner}{/repo}"
subscriptions_url="https://api.github.com/users/lolmaus/subscriptions"
type="User"
url="https://api.github.com/users/lolmaus"
>
version="ebc28f919ed371fcf5640ff1f4e25e60e1cdcf3c"
>
]
html_url="https://gist.github.com/5567591"
id="5567591"
owner=#<Hashie::Mash
avatar_url="https://secure.gravatar.com/avatar/d40e419b14bfe393b07206602ae0271a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png"
events_url="https://api.github.com/users/lolmaus/events{/privacy}"
followers_url="https://api.github.com/users/lolmaus/followers"
following_url="https://api.github.com/users/lolmaus/following{/other_user}"
gists_url="https://api.github.com/users/lolmaus/gists{/gist_id}"
gravatar_id="d40e419b14bfe393b07206602ae0271a"
html_url="https://github.com/lolmaus"
id=200884
login="lolmaus"
organizations_url="https://api.github.com/users/lolmaus/orgs"
received_events_url="https://api.github.com/users/lolmaus/received_events"
repos_url="https://api.github.com/users/lolmaus/repos"
starred_url="https://api.github.com/users/lolmaus/starred{/owner}{/repo}"
subscriptions_url="https://api.github.com/users/lolmaus/subscriptions"
type="User"
url="https://api.github.com/users/lolmaus"
>
public=true
updated_at="2013-05-13T17:03:09Z"
url="https://api.github.com/gists/5567591"
user=nil
>"
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment