WebService::GData::Feed::Entry::Content - Represent an xml Entry Content tag.
use WebService::GData::Feed::Entry; my $feed = new WebService::GData::Feed::Entry($jsonentry); my $content= $feed->content(); $content->type();#"application/x-shockwave-flash" $content->src();#http://www.youtube.com/v/qW...YvHqLE
inherits from WebService::GData
This package wraps the content data found in a entry tag of a feed using the json format of the Google Data API v2 (no other format is supported!).
Accept the data of the content tag found in a entry tag of a feed that has been perlified (from_json($json_string)).
Parameters
content_info:HashRef
Returns
WebService::GData::Feed::Entry::Content
Throws
WebService::GData::Error
Example:
use WebService::GData::Feed::Entry::Content; my $link = new WebService::GData::Feed::Entry::Content($jsonentry->{content}); #or my $content = new WebService::GData::Feed::Entry::Content({ src =>"http://www.youtube.com", type => "text/html", }); $content->src();#"http://www.youtube.com"
get/set the src of the content.
none
src:Scalar
use WebService::GData::Feed::Entry::Content; my $link = new WebService::GData::Feed::Entry::Content($jsonentry->{content}); $link->src("http://www.youtube.com/v/qWAY3...vHqLE"); $link->src();#http://www.youtube.com/v/qWAY3...vHqLE
get/set the type of the content.
type:Scalar
use WebService::GData::Feed::Entry::Content; my $link = new WebService::GData::Feed::Entry::Content($jsonentry->{content}); $link->type("text/html"); $link->type();#text/html
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.