Client/Request/Role/HasUriSingle.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 93.7% 15 / 16 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
__ANON__
1.0
path
1.0
CRAP 1.0
« Client/Request/Role/HasUriRelationships.pm ↑ Summary Client/Request/RetrieveByRelationship.pm »
1 # ABSTRACT: request - role - URI format for single-resource requests
2 package PONAPI::Client::Request::Role::HasUriSingle;
3  
4 3 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 has uri_template => (
7 is => 'ro',
8 isa => 'Str',
9 7 ▶ default => sub { '/{type}/{id}' },
Subroutine __ANON__: called CC=1 SCAR=0.0
10 3 );
11  
12 sub path {
13 8 ▶ my $self = shift;
Subroutine path: called CC=1 SCAR=0.0
Pod undocumented
14 8 return +{ type => $self->type, id => $self->id };
15 }
16  
17 3 ▶no Moose::Role; 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19 __END__
20  
21 =pod
22  
23 =encoding UTF-8
24  
25 =head1 NAME
26  
27 PONAPI::Client::Request::Role::HasUriSingle - request - role - URI format for single-resource requests
28  
29 =head1 VERSION
30  
31 version 0.002011
32  
33 =head1 AUTHORS
34  
35 =over 4
36  
37 =item *
38  
39 Mickey Nasriachi <mickey@cpan.org>
40  
41 =item *
42  
43 Stevan Little <stevan@cpan.org>
44  
45 =item *
46  
47 Brian Fraser <hugmeir@cpan.org>
48  
49 =back
50  
51 =head1 COPYRIGHT AND LICENSE
52  
53 This software is copyright (c) 2019 by Mickey Nasriachi, Stevan Little, Brian Fraser.
54  
55 This is free software; you can redistribute it and/or modify it under
56 the same terms as the Perl 5 programming language system itself.
57  
58 =cut
« Client/Request/Role/HasUriRelationships.pm ↑ Summary Client/Request/RetrieveByRelationship.pm »