module Dashing::Downloader
Public Instance Methods
get_gist(gist_id)
click to toggle source
# File lib/dashing/downloader.rb, line 9 def get_gist(gist_id) get_json("https://api.github.com/gists/#{gist_id}") end
get_json(url)
click to toggle source
# File lib/dashing/downloader.rb, line 13 def get_json(url) response = open(url).read JSON.parse(response) end