Class: EasyPost::Models::Pickup
- Inherits:
-
EasyPostObject
- Object
- Object
- EasyPostObject
- EasyPost::Models::Pickup
- Defined in:
- lib/easypost/models/pickup.rb
Overview
The Pickup object allows you to schedule a pickup from your carrier from your customer’s residence or place of business.
Instance Method Summary collapse
-
#lowest_rate(carriers = [], services = []) ⇒ Object
Get the lowest rate of a Pickup (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 Pickup (can exclude by having ‘’!‘` as the first element of your optional filter lists).
6 7 8 |
# File 'lib/easypost/models/pickup.rb', line 6 def lowest_rate(carriers = [], services = []) EasyPost::Util.get_lowest_object_rate(self, carriers, services, 'pickup_rates') end |