class Sqwiggle::Error
Attributes
error_type[R]
param[R]
status[R]
Public Class Methods
new(response)
click to toggle source
Calls superclass method
# File lib/sqwiggle/error.rb, line 8 def initialize(response) h = JSON.parse(response.body) @status = response.status @type = h['type'] @param = h['param'] super(message) end