Skip to content

Instantly share code, notes, and snippets.

@rileytg
Last active Dec 18, 2015
Embed
What would you like to do?
example api call into ruby obj
require 'json'
require 'rest-client'
response = RestClient.get "/gem/#{name}.json"
version = JSON.parse(response)['version']
@rileytg

This comment has been minimized.

Copy link
Owner Author

@rileytg rileytg commented Jun 18, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment