Class: EasyPost::Models::Pickup

Inherits:
EasyPostObject show all
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

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