- Class Attributes
- Class Methods
- NO WARRANTY
- COPYRIGHT AND LICENSE
use Shipment::Label; my $label = Shipment::Label->new( data => $file_contents, file_name => 'label.pdf', ); $label->save('/tmp/') ## writes label to disk at /tmp/label.pdf
Shipment::Label - a shipping label/document
This class defines a shipping label and provides a method for saving to disk. It can also be used to store other shipping documents.
The tracking id of the label
The actual file content (must not be base64 encoded which is usually how it comes through the intertubes)
The content type of the file (application/pdf, text/epl, image/gif, etc). Currently not used for anything in particular.
The file name to be used when saving the file to disk
returns BASE64 encoded file content
Saves the file to disk. Will save to the cwd if nothing is specified
Andrew Baerg @ <andrew at pullingshots dot ca>
Issues can be submitted at https://github.com/pullingshots/Shipment/issues
Copyright (C) 2016 Andrew J Baerg, All Rights Reserved
Absolutely, positively NO WARRANTY, neither express or implied, is offered with this software. You use this software at your own risk. In case of loss, no person or entity owes you anything whatsoever. You have been warned.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Andrew Baerg <firstname.lastname@example.org>
This software is copyright (c) 2018 by Andrew Baerg.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.