Last active
August 29, 2015 14:12
-
-
Save inf0rmer/78a84c0faa1a087ddf24 to your computer and use it in GitHub Desktop.
Blanket simple usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'blanket' | |
github = Blanket.wrap("https://api.github.com") | |
# Get some user's info | |
user = github.users('inf0rmer').get | |
user.login | |
# => "inf0rmer" | |
# Get a user's repos | |
github.users('inf0rmer').repos.get | |
# => [{ | |
# "id": 20000073, | |
# "name": "BAPersistentOperationQueue", | |
# ... | |
# }, ...] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment