Sha256: 9baf6845f83f192dfadf1d177c15c2b27e5c6d6ef36fdf01640c6f730c1dc0c2

Contents?: true

Size: 480 Bytes

Versions: 13

Compression:

Stored size: 480 Bytes

Contents

# frozen_string_literal: true

# The Pickup object allows you to schedule a pickup from your carrier from your customer's residence or place of business.
class EasyPost::Models::Pickup < EasyPost::Models::EasyPostObject
  # Get the lowest rate of a Pickup (can exclude by having `'!'` as the first element of your optional filter lists).
  def lowest_rate(carriers = [], services = [])
    EasyPost::Util.get_lowest_object_rate(self, carriers, services, 'pickup_rates')
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
easypost-6.4.1 lib/easypost/models/pickup.rb
easypost-6.4.0 lib/easypost/models/pickup.rb
easypost-6.3.0 lib/easypost/models/pickup.rb
easypost-6.2.0 lib/easypost/models/pickup.rb
easypost-6.1.1 lib/easypost/models/pickup.rb
easypost-6.1.0 lib/easypost/models/pickup.rb
easypost-6.0.0 lib/easypost/models/pickup.rb
easypost-5.3.0 lib/easypost/models/pickup.rb
easypost-5.2.0 lib/easypost/models/pickup.rb
easypost-5.1.1 lib/easypost/models/pickup.rb
easypost-5.1.0 lib/easypost/models/pickup.rb
easypost-5.0.1 lib/easypost/models/pickup.rb
easypost-5.0.0 lib/easypost/models/pickup.rb