class ResoTransport::RequestError

Attributes

request[R]
response[R]

Public Class Methods

new(request, response, resource = nil) click to toggle source
Calls superclass method ResoTransport::ResourceError::new
# File lib/reso_transport/errors.rb, line 41
def initialize(request, response, resource = nil)
  @response = response.respond_to?(:to_hash) ? response.to_hash : response
  @request = request
  super resource
end

Public Instance Methods

message() click to toggle source
# File lib/reso_transport/errors.rb, line 47
def message
  "Received #{response[:status]} for #{resource_name}"
end