Skip to content

Instantly share code, notes, and snippets.

Last active Dec 18, 2015
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']

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