Class: FriendlyShipping::Services::UpsFreight::GenerateHandlingUnitsHash
- Inherits:
-
Object
- Object
- FriendlyShipping::Services::UpsFreight::GenerateHandlingUnitsHash
- 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
12 13 14 |
# File 'lib/friendly_shipping/services/ups_freight/generate_handling_units_hash.rb', line 12 def call(shipment:, options:) handling_units(shipment, ).reduce(&:merge) end |