class Redd::APIError
An error with the API.
Attributes
name[R]
response[R]
Public Class Methods
new(response)
click to toggle source
Calls superclass method
# File lib/redd/error.rb, line 11 def initialize(response) @response = response @name, message = response.body[:json][:errors][0] super(message) end