class EasyPost::Models::Shipment

The workhorse of the EasyPost API, a Shipment is made up of a “to” and “from” Address, the Parcel being shipped, and any customs forms required for international deliveries.

Public Instance Methods

lowest_rate(carriers = [], services = []) click to toggle source

Get the lowest rate of a Shipment (can exclude by having ‘’!‘` as the first element of your optional filter lists).

# File lib/easypost/models/shipment.rb, line 7
def lowest_rate(carriers = [], services = [])
  EasyPost::Util.get_lowest_object_rate(self, carriers, services)
end