Class: FriendlyShipping::Services::UpsFreight::GenerateHandlingUnitsHash

Inherits:
Object
  • Object
show all
Defined in:
lib/friendly_shipping/services/ups_freight/generate_handling_units_hash.rb

Overview

Generates a handling units hash for JSON serialization.

Class Method Summary collapse

Class Method Details

.call(shipment:, options:) ⇒ Hash

Parameters:

Returns:

  • (Hash)


12
13
14
# File 'lib/friendly_shipping/services/ups_freight/generate_handling_units_hash.rb', line 12

def call(shipment:, options:)
  handling_units(shipment, options).reduce(&:merge)
end