class FriendlyShipping::Services::ShipEngine::LabelPackageOptions
Options relating to packages in the ShipEngine
labels call
@attribute :package_code [Symbol] The type of package. Possible types can be gotten
via the ShipEngine API: https://www.shipengine.com/docs/reference/list-carrier-packages/ If a package type is given, no dimensions will be added to the call (as we can assume the carrier knows the dimensions of their packaging types).
@attribute messages [Array<String>] A list of messages to add to the label. No carrier accepts
more than three messages, and some have restrictions on how many characters are possible. We're not validating here though.
Attributes
messages[R]
package_code[R]
Public Class Methods
new(package_code: nil, messages: [], **kwargs)
click to toggle source
Calls superclass method
FriendlyShipping::PackageOptions::new
# File lib/friendly_shipping/services/ship_engine/label_package_options.rb, line 20 def initialize(package_code: nil, messages: [], **kwargs) @package_code = package_code @messages = messages super(**kwargs) end