class Amplitude::APIError
Attributes
body[RW]
code[RW]
url[RW]
Public Class Methods
new(response)
click to toggle source
Calls superclass method
# File lib/amplitude/errors.rb, line 20 def initialize(response) super('The HTTP API returned an error') self.url = response.request.path.to_s self.code = response.code self.body = response.body end