Class: FreightKit::Response

Inherits:
Model
  • Object
show all
Defined in:
lib/freight_kit/models/response.rb

Overview

Basic Response class for requests against a carrier’s API.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Model

#attributes, #initialize

Constructor Details

This class inherits a constructor from FreightKit::Model

Instance Attribute Details

#errorFreightKit::Error, NilClass

The error object.

Returns:



18
19
20
# File 'lib/freight_kit/models/response.rb', line 18

class Response < Model
  attr_accessor :error, :request, :response
end

#requestString

The raw request.

Returns:

  • (String)


18
19
20
# File 'lib/freight_kit/models/response.rb', line 18

class Response < Model
  attr_accessor :error, :request, :response
end

#responseString

The raw response.

Returns:

  • (String)


18
19
20
# File 'lib/freight_kit/models/response.rb', line 18

class Response < Model
  attr_accessor :error, :request, :response
end