Class: FriendlyShipping::Services::TForceFreight::GenerateHandlingUnitsHash

Inherits:
Object
  • Object
show all
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

Class Method Details

.call(shipment:, options:) ⇒ Hash

Returns handling units hash suitable for JSON request.

Parameters:

Returns:

  • (Hash)

    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, options).reduce(&:merge)
end