class HOALife::HTTPError
HTTP Errors
Attributes
details[R]
headers[R]
status[R]
Public Class Methods
new(status, headers, details)
click to toggle source
Calls superclass method
# File lib/hoalife/error.rb, line 10 def initialize(status, headers, details) @status = status @headers = headers begin @details = JSON.parse(details) rescue JSON::ParserError, TypeError @details = details end super(status) end