class FriendlyShipping::Services::ShipEngine::LabelOptions

Options for generating ShipEngine labels

@attribute label_format [Symbol] The format for the label. Possible Values: :png, :zpl and :pdf. Default :pdf @attribute label_download_type [Symbol] Whether to download directly (`:inline`) or

obtain a URL to the label (`:url`). Default :url

@attribute package_options [Enumberable<LabelPackageOptions>] Package options for the packages in the shipment

Attributes

label_download_type[R]
label_format[R]
shipping_method[R]

Public Class Methods

new( shipping_method:, label_format: :pdf, label_download_type: :url, **kwargs ) click to toggle source
Calls superclass method FriendlyShipping::ShipmentOptions::new
# File lib/friendly_shipping/services/ship_engine/label_options.rb, line 20
def initialize(
  shipping_method:,
  label_format: :pdf,
  label_download_type: :url,
  **kwargs
)
  @shipping_method = shipping_method
  @label_format = label_format
  @label_download_type = label_download_type
  super(**kwargs.merge(package_options_class: LabelPackageOptions))
end