Sha256: fa274030da83e3f77197fa65c91322583d14ccbcbb3ddfb274727781fdcea77d

Contents?: true

Size: 669 Bytes

Versions: 10

Compression:

Stored size: 669 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

10 entries across 10 versions & 1 rubygems

Version Path
friendly_shipping-0.6.5 lib/friendly_shipping/services/ups/rate_estimate_package_options.rb
friendly_shipping-0.6.4 lib/friendly_shipping/services/ups/rate_estimate_package_options.rb
friendly_shipping-0.6.3 lib/friendly_shipping/services/ups/rate_estimate_package_options.rb
friendly_shipping-0.6.2 lib/friendly_shipping/services/ups/rate_estimate_package_options.rb
friendly_shipping-0.6.1 lib/friendly_shipping/services/ups/rate_estimate_package_options.rb
friendly_shipping-0.6.0 lib/friendly_shipping/services/ups/rate_estimate_package_options.rb
friendly_shipping-0.5.3 lib/friendly_shipping/services/ups/rate_estimate_package_options.rb
friendly_shipping-0.5.2 lib/friendly_shipping/services/ups/rate_estimate_package_options.rb
friendly_shipping-0.5.1 lib/friendly_shipping/services/ups/rate_estimate_package_options.rb
friendly_shipping-0.5 lib/friendly_shipping/services/ups/rate_estimate_package_options.rb