NAME

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

VERSION

version 1.0.4

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

from_hash

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

Constructor, takes a hashref with at least a key matching /ImageFormat$/ and a key of GraphicImage, and extracts 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.