WebService::GData::Serialize - Factory class that loads the proper serialize package
#the code below will load WebService::GData::Serialize::XML; #and call its encode function my $xml= WebService::GData::Serialize->to_xml(@args); #or my $xml = WebService::GData::Serialize->as_xml(@args); #or my $xml = WebService::GData::Serialize->xml(@args); #a json format might be added #load behind the scene: WebService::GData::Serialize::JSON my $json = WebService::GData::Serialize->to_json(@args);
inherits from WebService::GData
This package is a simple helper factory class that will load a serializer package and calls its encode function. Concrete serializer class should inherit from WebService::GData::Serialize::AbstractSerializer and implement the encode function.
encode
See also WebService::GData::Serialize::AbstractSerializer.
This function will be called when an undefined function on this package is used. It will load the corresponding serializer package. It follows the following format:
Parameters
args:*
Returns
Example:
see SYNOPSYS
If you do me the favor to _use_ this module and find a bug, please email me i will try to do my best to fix it (patches welcome)!
shiriru <shirirulestheworld[arobas]gmail.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install WebService::GData, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::GData
CPAN shell
perl -MCPAN -e shell install WebService::GData
For more information on module installation, please visit the detailed CPAN module installation guide.