Class: FriendlyShipping::Services::TForceFreight::GenerateHandlingUnitsHash
- Inherits:
-
Object
- Object
- FriendlyShipping::Services::TForceFreight::GenerateHandlingUnitsHash
- Defined in:
- lib/friendly_shipping/services/tforce_freight/generate_handling_units_hash.rb
Overview
Generates a handling units hash for JSON serialization.
Class Method Summary collapse
-
.call(shipment:, options:) ⇒ Hash
Handling units hash suitable for JSON request.
Class Method Details
.call(shipment:, options:) ⇒ Hash
Returns handling units hash suitable for JSON request.
12 13 14 |
# File 'lib/friendly_shipping/services/tforce_freight/generate_handling_units_hash.rb', line 12 def call(shipment:, options:) handling_units(shipment, ).reduce(&:merge) end |