Graph/Role/Uri.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 2 totaltotal 88.8% 16 / 18 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
uri
1.0
CRAP 1.0
« Graph/Publish/PageTab.pm ↑ Summary Graph/Publish/RSVPAttending.pm »
1 package Facebook::Graph::Role::Uri;
2 4 $Facebook::Graph::Role::Uri::VERSION = '1.1205';
3 4 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use URI;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 4 ▶sub uri {
Subroutine uri: called CC=1 SCAR=0.0
Pod undocumented
7 4 return URI->new('https://graph.facebook.com')
8 }
9  
10 4 has api_version => (
11 is => 'rw',
12 default => 'v3.1',
13 );
14  
15 5 ▶sub generate_versioned_path {
Subroutine generate_versioned_path: called CC=1 SCAR=0.0
Pod undocumented
16 5 my ($self, $path) = @_;
17 5 return join('/', $self->api_version, $path);
18 }
19  
20  
21 4 1;
22  
23 =head1 NAME
24  
25 Facebook::Graph::Role::Uri - The base URI for the Facebook Graph API.
26  
27 =head1 VERSION
28  
29 version 1.1205
30  
31 =head1 DESCRIPTION
32  
33 Provides a C<uri> method in any class which returns a L<URI> object that points to the Facebook Graph API.
34  
35 =head1 LEGAL
36  
37 Facebook::Graph is Copyright 2010 - 2017 Plain Black Corporation (L<http://www.plainblack.com>) and is licensed under the same terms as Perl itself.
38  
39 =cut
« Graph/Publish/PageTab.pm ↑ Summary Graph/Publish/RSVPAttending.pm »