class Amply::Exceptions::APIException
Attributes
status[R]
text[R]
Public Class Methods
new(response)
click to toggle source
Calls superclass method
# File lib/amply/exceptions/api_exception.rb, line 6 def initialize(response) @status = response.code.to_i @text = response.message super end
Public Instance Methods
message()
click to toggle source
# File lib/amply/exceptions/api_exception.rb, line 13 def message 'An error occurred while making an API request' end