Client/Request/FetchFriends.pm

filter: Statementstmt 88.2% 15 / 17 Branchbran n/a Conditioncond 0.0% 0 / 4 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 80.0% 4 / 5 Podpod 100% 1 / 1 totaltotal 68.9% 20 / 29 CC 3 SCAR 17.4
CC
3
Cov
71%
BUILDARGS
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 5.7
« Client/Resource/AppData.pm ↑ Summary Client/Request/FetchPerson.pm »
1 package Net::OpenSocial::Client::Request::FetchFriends;
2  
3 1 ▶use Any::Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 extends 'Net::OpenSocial::Client::Request';
5  
6 1 ▶use Net::OpenSocial::Client::Type::Service qw(PEOPLE);
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use Net::OpenSocial::Client::Type::Operation qw(GET);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 0 ▶sub BUILDARGS {
Subroutine BUILDARGS: not called CC=3 SCAR=24.8
Pod documented
10 0 my ( $self, $user_id, $params ) = @_;
11 return {
12 0 ▶ service => PEOPLE,
Condition0%0/4
$user_id || '@me'
l!l
00
$params || {}
l!l
00
MC/DC0%0/1
$user_id || '@me'
$user_id
MC/DC0%0/1
$params || {}
$params
Truth table0%0/2
A
A= $user_id
Aresult
11
00
Truth table0%0/2
A
A= $params
Aresult
11
00
13 operation => GET,
14 user_id => $user_id||'@me',
15 group_id => '@friends',
16 params => $params||{},
17 };
18 }
19  
20 1 ▶no Any::Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
21 1 __PACKAGE__->meta->make_immutable;
22 1 1;
23  
24 =head1 NAME
25  
26 Net::OpenSocial::Client::Request::FetchFriends - Request to fetch friends
27  
28 =head1 SYNOPSIS
29  
30 my $user_id = '@me';
31 my $req = Net::OpenSocial::Client::Request::FetchFriends->new( $user_id );
32 $client->add_request( $req_id => $req );
33  
34 =head1 DESCRIPTION
35  
36 Request to fetch friends which has a simple constructor.
37 You only have to do is pass a user-id or selector.
38 This is a subclass of L<Net::OpenSocial::Client::Request>.
39  
40 =head1 METHODS
41  
42 =head2 BUILDARGS
43  
44 See L<Moose> or L<Mouse>
45  
46 =head1 SEE ALSO
47  
48 L<Net::OpenSocial::Client::Request>
49  
50 =head1 AUTHOR
51  
52 Lyo Kato, E<lt>lyo.kato@gmail.comE<gt>
53  
54 =head1 COPYRIGHT AND LICENSE
55  
56 Copyright (C) 2009 by Lyo Kato
57  
58 This library is free software; you can redistribute it and/or modify
59 it under the same terms as Perl itself, either Perl version 5.8.8 or,
60 at your option, any later version of Perl 5 you may have available.
61  
62 =cut
63  
« Client/Resource/AppData.pm ↑ Summary Client/Request/FetchPerson.pm »