class Imgurr::ImgurErrors

Public Class Methods

handle_error(response) click to toggle source
# File lib/imgurr/imgurErrors.rb, line 11
                def handle_error(response)
data = JSON.parse(response)
"Imgur Error: #{data['data']['error']} (#{data['status']})"
                end