blib/lib/Net/Google/PicasaWeb/Comment.pm untested

filter: Statementstmt 0.0% 0 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod n/a totaltotal 0.0% 0 / 19 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use strict;
2 use warnings;
3  
4 package Net::Google::PicasaWeb::Comment;
5 use Moose;
6  
7 extends 'Net::Google::PicasaWeb::Feed';
8  
9 =head1 NAME
10  
11 Net::Google::PicasaWeb::Comment - represents a single Picasa Web comment
12  
13 =head1 SYNOPSIS
14  
15 my @comments = $service->list_comments;
16 for my $comment (@comments) {
17 print "Title: ", $comment->title, "\n";
18 print "Content: ", $photo->content, "\n";
19 }
20  
21 =head1 DESCRIPTION
22  
23 Represents an individual Picasa Web comment.
24  
25 =head1 ATTRIBUTES
26  
27 =head2 title
28  
29 This is the name of the person that made the comment.
30  
31 =head2 content
32  
33 This is the comment that was made.
34  
35 =cut
36  
37 has content => (
38 is => 'rw',
39 isa => 'Str',
40 );
41  
42 =head2 author_name
43  
44 This is the author of the comment.
45  
46 =head2 author_uri
47  
48 This is the URL to get to the author's public albums on Picasa Web.
49  
50 =cut
51  
52 override from_feed => sub {
53 my ($class, $service, $entry) = @_;
54 my $self = $class->super($service, $entry);
55  
56 $self->content($entry->field('content'));
57 return $self;
58 };
59  
60 =head1 AUTHOR
61  
62 Andrew Sterling Hanenkamp, C<< <hanenkamp at cpan.org> >>
63  
64 =head1 COPYRIGHT & LICENSE
65  
66 Copyright 2008 Andrew Sterling Hanenkamp
67  
68 This program is free software; you can redistribute it and/or modify it
69 under the same terms as Perl itself.
70  
71 =cut
72  
73 1;