Sha256: 6c826fb61af0eb17d017b513aeb2a818f6442da4259ee7b0f16072ba34a2523c

Contents?: true

Size: 806 Bytes

Versions: 1

Compression:

Stored size: 806 Bytes

Contents

# frozen_string_literal: true

module FriendlyShipping
  module Services
    class ShipEngineLTL
      class ItemOptions < FriendlyShipping::ItemOptions
        attr_reader :packaging_code,
                    :freight_class,
                    :nmfc_code,
                    :stackable,
                    :hazardous_materials

        def initialize(
          packaging_code: nil,
          freight_class: nil,
          nmfc_code: nil,
          stackable: true,
          hazardous_materials: false,
          **kwargs
        )
          @packaging_code = packaging_code
          @freight_class = freight_class
          @nmfc_code = nmfc_code
          @stackable = stackable
          @hazardous_materials = hazardous_materials
          super(**kwargs)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
friendly_shipping-0.8.1 lib/friendly_shipping/services/ship_engine_ltl/item_options.rb