Hunter McMillen

NAME

Net::Easypost::Label

VERSION

version 0.21

SYNOPSIS

Net::Easypost::Label->new

NAME

Net::Easypost::Label

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

has rate => ( is => 'ro', );

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

_build_fieldnames
_build_role
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 format 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.