class Redd::ResponseError
Represents an error from reddit returned in a response.
Attributes
response[RW]
Public Class Methods
new(response)
click to toggle source
Calls superclass method
# File lib/redd/error.rb, line 22 def initialize(response) super(response.raw_body.length <= 80 ? response.raw_body : "#{response.raw_body[0..80]}...") @response = response end