| 1 | package Net::OpenSocial::Client::Request::FetchPeople; | ||||||||||||||||||||||||||||||||
| 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=4 SCAR=30.0
Pod
documented
| |||||||||||||||||||||||||||||||||
| 10 | 0 | my ( $self, $user_id, $group_id, $params ) = @_; | |||||||||||||||||||||||||||||||
| 11 | return { | ||||||||||||||||||||||||||||||||
| 12 | 0 | ▶ | service => PEOPLE, | ||||||||||||||||||||||||||||||
|
Condition0%0/6
$user_id || '@me'
$group_id || '@self'
$params || {}
MC/DC0%0/1
$user_id || '@me'
$user_id
MC/DC0%0/1
$group_id || '@self'
$group_id
MC/DC0%0/1
$params || {}
$params
Truth table0%0/2
A
A= $user_id
Truth table0%0/2
A
A= $group_id
Truth table0%0/2
A
A= $params
| |||||||||||||||||||||||||||||||||
| 13 | operation => GET, | ||||||||||||||||||||||||||||||||
| 14 | user_id => $user_id || '@me', | ||||||||||||||||||||||||||||||||
| 15 | group_id => $group_id || '@self', | ||||||||||||||||||||||||||||||||
| 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::FetchPeople - Request to fetch people | ||||||||||||||||||||||||||||||||
| 27 | |||||||||||||||||||||||||||||||||
| 28 | =head1 SYNOPSIS | ||||||||||||||||||||||||||||||||
| 29 | |||||||||||||||||||||||||||||||||
| 30 | my $user_id = '@me'; | ||||||||||||||||||||||||||||||||
| 31 | my $group_id = '@friends'; | ||||||||||||||||||||||||||||||||
| 32 | my $req = Net::OpenSocial::Client::Request::FetchPeople->new( $user_id, $group_id ); | ||||||||||||||||||||||||||||||||
| 33 | $client->add_request( $req_id => $req ); | ||||||||||||||||||||||||||||||||
| 34 | |||||||||||||||||||||||||||||||||
| 35 | =head1 DESCRIPTION | ||||||||||||||||||||||||||||||||
| 36 | |||||||||||||||||||||||||||||||||
| 37 | Request to fetch person which has a simple constructor. | ||||||||||||||||||||||||||||||||
| 38 | You only have to do is pass a user-id and group-id or their selectors. | ||||||||||||||||||||||||||||||||
| 39 | This is a subclass of L<Net::OpenSocial::Client::Request>. | ||||||||||||||||||||||||||||||||
| 40 | |||||||||||||||||||||||||||||||||
| 41 | =head1 METHODS | ||||||||||||||||||||||||||||||||
| 42 | |||||||||||||||||||||||||||||||||
| 43 | =head2 BUILDARGS | ||||||||||||||||||||||||||||||||
| 44 | |||||||||||||||||||||||||||||||||
| 45 | See L<Moose>, L<Mouse> | ||||||||||||||||||||||||||||||||
| 46 | |||||||||||||||||||||||||||||||||
| 47 | =head1 SEE ALSO | ||||||||||||||||||||||||||||||||
| 48 | |||||||||||||||||||||||||||||||||
| 49 | L<Net::OpenSocial::Client::Request> | ||||||||||||||||||||||||||||||||
| 50 | |||||||||||||||||||||||||||||||||
| 51 | =head1 AUTHOR | ||||||||||||||||||||||||||||||||
| 52 | |||||||||||||||||||||||||||||||||
| 53 | Lyo Kato, E<lt>lyo.kato@gmail.comE<gt> | ||||||||||||||||||||||||||||||||
| 54 | |||||||||||||||||||||||||||||||||
| 55 | =head1 COPYRIGHT AND LICENSE | ||||||||||||||||||||||||||||||||
| 56 | |||||||||||||||||||||||||||||||||
| 57 | Copyright (C) 2009 by Lyo Kato | ||||||||||||||||||||||||||||||||
| 58 | |||||||||||||||||||||||||||||||||
| 59 | This library is free software; you can redistribute it and/or modify | ||||||||||||||||||||||||||||||||
| 60 | it under the same terms as Perl itself, either Perl version 5.8.8 or, | ||||||||||||||||||||||||||||||||
| 61 | at your option, any later version of Perl 5 you may have available. | ||||||||||||||||||||||||||||||||
| 62 | |||||||||||||||||||||||||||||||||
| 63 | =cut | ||||||||||||||||||||||||||||||||
| 64 | |||||||||||||||||||||||||||||||||