NAME

Net::Async::Webservice::UPS::Response::Image - an image in a UPS response

VERSION

version 1.1.1

ATTRIBUTES

format

Enum of type "ImageType" in Net::Async::Webservice::UPS::Types, one of EPL, ZPL, SPL, STARPL, GIF.

data

String of bytes, containing the actual image data. You can pass the argument base64_data to the constructor instead of data, to have it decoded automatically.

METHODS

BUILDARGS

my $miage = Net::Async::Webservice::UPS::Response::Image
              ->new($piece_of_ups_response);

If you call the constructor with a hashref with at least a key matching /ImageFormat$/ and a key of GraphicImage, this will extract the image.

AUTHORS

  • Gianni Ceccarelli <gianni.ceccarelli@net-a-porter.com>

  • Sherzod B. Ruzmetov <sherzodr@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Gianni Ceccarelli <gianni.ceccarelli@net-a-porter.com>.

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