Mark Allen > Net-Easypost > Net::Easypost::Label

Download:
Net-Easypost-0.09.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.09   Source  

NAME ^

Net::Easypost::Label - Object represents an Easypost label

VERSION ^

version 0.09

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

This is a Net::Easypost::Rate object associated with the 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.

AUTHOR ^

Mark Allen <mrallen1@yahoo.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.

syntax highlighting: