Sha256: b27faf8fd3b8075449c5bb5413b493c623f8dd8cd2c3f047e2e4f58fffa14e3d

Contents?: true

Size: 261 Bytes

Versions: 7

Compression:

Stored size: 261 Bytes

Contents

# coding: utf-8

#
# Interface for the Imgur API
#

module Imgurr
	class ImgurErrors
		class << self

			def handle_error(response)
        data = JSON.parse(response)
        "Imgur Error: #{data['data']['error']} (#{data['status']})"
			end
			
		end
	end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
imgurr-1.0.0 lib/imgurr/imgurErrors.rb
imgurr-0.2.0 lib/imgurr/imgurErrors.rb
imgurr-0.1.2 lib/imgurr/imgurErrors.rb
imgurr-0.1.1 lib/imgurr/imgurErrors.rb
imgurr-0.1.0 lib/imgurr/imgurErrors.rb
imgurr-0.0.4 lib/imgurr/imgurErrors.rb
imgurr-0.0.3 lib/imgurr/imgurErrors.rb