The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Net::Easypost::Label

VERSION

version 0.14

ATTRIBUTES

tracking_code

The carrier generated tracking code for this label.

filename

The filename the Easypost API used to create the label file. (Also used for local storage.)

filetype

The file type for the image data. Defaults to 'image/png'

url

The URL from which to download the label image.

rate

The chosen rate for this Label

image

This is the label image data. It lazily downloads this information if a URL is defined. It currently uses a Net::Easypost::Request role to get the data from the Easypost service.

METHODS

has_url

This is a predicate which tells the caller if a URL is defined in the object.

has_image

Tells the caller if an image has been downloaded.

save

Store the label image locally using the filename in the object. This will typically be in the current working directory of the caller.

clone

returns a new Net::Easypost::Label object that is a deep-copy of this object

serialize

serialized form for Label objects

AUTHOR

Mark Allen <mrallen1@yahoo.com>, Hunter McMillen <mcmillhj@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Mark Allen.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.