Sha256: b4c697c289c1583dfe4c634fab29f9402ba7d2115a49b91bef14007012eb9331

Contents?: true

Size: 523 Bytes

Versions: 13

Compression:

Stored size: 523 Bytes

Contents

# frozen_string_literal: true

# 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.
class EasyPost::Models::Shipment < EasyPost::Models::EasyPostObject
  # Get the lowest rate of a Shipment (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)
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

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