Client/Request/RetrieveByRelationship.pm

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