Class: FreightKit::PickupResponse

Inherits:
Response show all
Defined in:
lib/freight_kit/models/pickup_response.rb

Overview

The ‘PickupResponse` object is returned by the Carrier#create_pickup call. The most important method is #pickup_number, which will return the pickup reference number.

Instance Attribute Summary collapse

Attributes inherited from Response

#error, #request, #response

Method Summary

Methods inherited from Model

#attributes, #initialize

Constructor Details

This class inherits a constructor from FreightKit::Model

Instance Attribute Details

#labelsArray<FreightKit::Label>

Shipping labels.

Returns:



16
17
18
# File 'lib/freight_kit/models/pickup_response.rb', line 16

class PickupResponse < Response
  attr_accessor :labels, :pickup_number
end

#pickup_numberString

Pickup reference number.

Returns:

  • (String)


16
17
18
# File 'lib/freight_kit/models/pickup_response.rb', line 16

class PickupResponse < Response
  attr_accessor :labels, :pickup_number
end