class EcwidApi::ResponseError
Public Class Methods
new(response)
click to toggle source
Calls superclass method
# File lib/ecwid_api/error.rb, line 5 def initialize(response) if response.respond_to?(:reason_phrase) super "#{response.reason_phrase} (#{response.status})\n#{response.body}" else super "The Ecwid API responded with an error (#{response.status})" end end