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 CC 1 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 1 ▶sub path {
Subroutine path: called CC=1 SCAR=0.0
Pod undocumented
13 1 my $self = shift;
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__
« Client/Request/Role/HasUriAll.pm ↑ Summary Client/Request/Role/HasUriSingle.pm »