Class: EasyPost::Models::Shipment
- Inherits:
-
EasyPostObject
- Object
- Object
- EasyPostObject
- EasyPost::Models::Shipment
- Defined in:
- lib/easypost/models/shipment.rb
Overview
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.
Instance Method Summary collapse
-
#lowest_rate(carriers = [], services = []) ⇒ Object
Get the lowest rate of a Shipment (can exclude by having ‘’!‘` as the first element of your optional filter lists).
Methods inherited from Object
#[], #[]=, #initialize, #to_hash, #to_s
Constructor Details
This class inherits a constructor from EasyPost::Models::Object
Instance Method Details
#lowest_rate(carriers = [], services = []) ⇒ Object
Get the lowest rate of a Shipment (can exclude by having ‘’!‘` as the first element of your optional filter lists).
7 8 9 |
# File 'lib/easypost/models/shipment.rb', line 7 def lowest_rate(carriers = [], services = []) EasyPost::Util.get_lowest_object_rate(self, carriers, services) end |