File Coverage

blib/lib/WebService/LiveJournal/FriendGroupList.pm
Criterion Covered Total %
statement 12 27 44.4
branch 0 2 0.0
condition n/a
subroutine 4 6 66.6
pod 0 2 0.0
total 16 37 43.2


line stmt bran cond sub pod time code
1             package WebService::LiveJournal::FriendGroupList;
2              
3 12     12   86 use strict;
  12         30  
  12         368  
4 12     12   74 use warnings;
  12         25  
  12         317  
5 12     12   66 use WebService::LiveJournal::List;
  12         25  
  12         322  
6 12     12   5362 use WebService::LiveJournal::FriendGroup;
  12         37  
  12         2508  
7             our @ISA = qw/ WebService::LiveJournal::List /;
8              
9             # ABSTRACT: (Deprecated) List of LiveJournal friend groups
10             our $VERSION = '0.09'; # VERSION
11              
12              
13             sub init
14             {
15 0     0 0   my $self = shift;
16 0           my %arg = @_;
17            
18 0 0         if(defined $arg{response})
19             {
20 0           foreach my $f (@{ $arg{response}->value->{friendgroups} })
  0            
21             {
22 0           $self->push(new WebService::LiveJournal::FriendGroup(%{ $f }));
  0            
23             }
24             }
25            
26 0           return $self;
27             }
28              
29             sub as_string
30             {
31 0     0 0   my $self = shift;
32 0           my $str = "[friendgrouplist \n";
33 0           foreach my $friend (@{ $self })
  0            
34             {
35 0           $str .= "\t" . $friend->as_string . "\n";
36             }
37 0           $str .= ']';
38 0           $str;
39             }
40              
41             1;
42              
43             __END__
44              
45             =pod
46              
47             =encoding UTF-8
48              
49             =head1 NAME
50              
51             WebService::LiveJournal::FriendGroupList - (Deprecated) List of LiveJournal friend groups
52              
53             =head1 VERSION
54              
55             version 0.09
56              
57             =head1 DESCRIPTION
58              
59             B<NOTE>: This distribution is deprecated. It uses the outmoded XML-RPC protocol.
60             LiveJournal has also been compromised. I recommend using DreamWidth instead
61             (L<https://www.dreamwidth.org/>) which is in keeping with the original philosophy
62             LiveJournal regarding advertising.
63              
64             List of friend groups returned from L<WebService::LiveJournal>.
65             See L<WebService::LiveJournal::FriendGroup> for how to use
66             this class.
67              
68             =head1 SEE ALSO
69              
70             L<WebService::LiveJournal>,
71              
72             =head1 AUTHOR
73              
74             Graham Ollis <plicease@cpan.org>
75              
76             =head1 COPYRIGHT AND LICENSE
77              
78             This software is copyright (c) 2013 by Graham Ollis.
79              
80             This is free software; you can redistribute it and/or modify it under
81             the same terms as the Perl 5 programming language system itself.
82              
83             =cut