class FriendlyShipping::Services::UpsFreight::GenerateDocumentOptionsHash
Public Class Methods
call(document_options:)
click to toggle source
# File lib/friendly_shipping/services/ups_freight/generate_document_options_hash.rb, line 7 def self.call(document_options:) { Type: { Code: document_options.document_type_code }, LabelsPerPage: document_options.labels_per_page, Format: { Code: document_options.format_code }, PrintFormat: { Code: document_options.thermal_code, }, PrintSize: { Length: document_options.length, Width: document_options.width, } } end