Skip to content

Instantly share code, notes, and snippets.

@lucasuyezu
Created February 2, 2015 05:44
Show Gist options
  • Save lucasuyezu/f37deeacc66621a4e34c to your computer and use it in GitHub Desktop.
Save lucasuyezu/f37deeacc66621a4e34c to your computer and use it in GitHub Desktop.
puts "Fetching data"
respose_body = HTTParty.get "https://api.bitcoinaverage.com/ticker/global/all"
# 1 second later
puts "Storing fetched data"
$redis.set(response_body["data"])
puts "Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment