class FriendlyShipping::Services::UpsFreight::RatesItemOptions
Options for Items in a UPS Freight shipment
@attribute [Symbol] packaging How the item is packaged, one of the keys of `PACKAGING_TYPES` @attribute [String] freight_class
The freight class of this item, for example '55' or '92.5' @attribute [String] nmfc_code
The national motor freight corporation code for this item. Something like '13050 sub 4'
Constants
- PACKAGING_TYPES
Attributes
freight_class[R]
nmfc_code[R]
packaging_code[R]
packaging_description[R]
Public Class Methods
new( packaging: :carton, freight_class: nil, nmfc_code: nil, **kwargs )
click to toggle source
Calls superclass method
FriendlyShipping::ItemOptions::new
# File lib/friendly_shipping/services/ups_freight/rates_item_options.rb, line 57 def initialize( packaging: :carton, freight_class: nil, nmfc_code: nil, **kwargs ) @packaging_code = PACKAGING_TYPES.fetch(packaging).fetch(:code) @packaging_description = PACKAGING_TYPES.fetch(packaging).fetch(:description) @freight_class = freight_class @nmfc_code = nmfc_code super(**kwargs) end