Sha256: a75281bb6754d151be29c252f4b30b626bd11b5e5d25ad61b133de7e1572e577

Contents?: true

Size: 672 Bytes

Versions: 7

Compression:

Stored size: 672 Bytes

Contents

# frozen_string_literal: true

require 'friendly_shipping/services/ups/label_item_options'

module FriendlyShipping
  module Services
    class Ups
      # Package properties relevant for quoting a UPS package
      #
      # @option transmit_dimensions [Boolean] Whether to transmit the dimensions of this package, or quote only based on weight.
      class RateEstimatePackageOptions < FriendlyShipping::PackageOptions
        attr_reader :transmit_dimensions

        def initialize(
          transmit_dimensions: true,
          **kwargs
        )
          @transmit_dimensions = transmit_dimensions
          super(**kwargs)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
friendly_shipping-0.9.0 lib/friendly_shipping/services/ups/rate_estimate_package_options.rb
friendly_shipping-0.8.1 lib/friendly_shipping/services/ups/rate_estimate_package_options.rb
friendly_shipping-0.8.0 lib/friendly_shipping/services/ups/rate_estimate_package_options.rb
friendly_shipping-0.7.3 lib/friendly_shipping/services/ups/rate_estimate_package_options.rb
friendly_shipping-0.7.2 lib/friendly_shipping/services/ups/rate_estimate_package_options.rb
friendly_shipping-0.7.1 lib/friendly_shipping/services/ups/rate_estimate_package_options.rb
friendly_shipping-0.7.0 lib/friendly_shipping/services/ups/rate_estimate_package_options.rb