Class: FriendlyShipping::Services::TForceFreight::GenerateDocumentOptionsHash
- Inherits:
-
Object
- Object
- FriendlyShipping::Services::TForceFreight::GenerateDocumentOptionsHash
- Defined in:
- lib/friendly_shipping/services/tforce_freight/generate_document_options_hash.rb
Overview
Generates a document options hash for JSON serialization.
Class Method Summary collapse
-
.call(document_options:) ⇒ Hash
Document options hash suitable for JSON request.
Class Method Details
.call(document_options:) ⇒ Hash
Returns document options hash suitable for JSON request.
11 12 13 14 15 16 17 |
# File 'lib/friendly_shipping/services/tforce_freight/generate_document_options_hash.rb', line 11 def call(document_options:) { type: .document_type_code, format: .format_code, label: label() }.compact end |