Client/Request/Role/HasUriRelationships.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/HasUriAll.pm ↑ Summary Client/Request/Role/HasUriSingle.pm »
1 # ABSTRACT: request - role - URI format for relationships requests
2 package PONAPI::Client::Request::Role::HasUriRelationships;
3  
4 1 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 has uri_template => (
7 is => 'ro',
8 isa => 'Str',
9 2 ▶ default => sub { '/{type}/{id}/relationships/{rel_type}' },
Subroutine __ANON__: called CC=1 SCAR=0.0
10 1 );
11  
12 sub path {
13 1 ▶ my $self = shift;
Subroutine path: called CC=1 SCAR=0.0
Pod undocumented
14 1 return +{ type => $self->type, id => $self->id, rel_type => $self->rel_type };
15 }
16  
17 1 ▶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::HasUriRelationships - request - role - URI format for relationships 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/HasUriAll.pm ↑ Summary Client/Request/Role/HasUriSingle.pm »