Sha256: 3e4f128ec87f294f4d885b36e328396372b091636fcb408aeee3dc0e3afaa773

Contents?: true

Size: 454 Bytes

Versions: 1

Compression:

Stored size: 454 Bytes

Contents

# frozen_string_literal: true

module FriendlyShipping
  module Services
    class UpsJson
      class RatesPackageOptions < FriendlyShipping::PackageOptions
        attr_reader :transmit_dimensions

        def initialize(transmit_dimensions: true,
                       **kwargs)
          @transmit_dimensions = transmit_dimensions
          super(**kwargs.reverse_merge(item_options_class: RatesItemOptions))
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
friendly_shipping-0.9.0 lib/friendly_shipping/services/ups_json/rates_package_options.rb