Client/Request/RetrieveByRelationship.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 93.3% 14 / 15 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
path
1.0
BEGIN
1.0
CRAP 1.0
« Client/Request/RetrieveAll.pm ↑ Summary Client/Request/RetrieveRelationships.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 sub path {
17 1 ▶ my $self = shift;
Subroutine path: called CC=1 SCAR=0.0
Pod undocumented
18 1 return '/' . $self->type . '/' . $self->id . '/' . $self->rel_type;
19 }
20  
21 1 __PACKAGE__->meta->make_immutable;
22 1 ▶no Moose; 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
23  
24 __END__
25  
26 =pod
27  
28 =encoding UTF-8
29  
30 =head1 NAME
31  
32 PONAPI::Client::Request::RetrieveByRelationship - request - retrieve by relationship
33  
34 =head1 VERSION
35  
36 version 0.002003
37  
38 =head1 AUTHORS
39  
40 =over 4
41  
42 =item *
43  
44 Mickey Nasriachi <mickey@cpan.org>
45  
46 =item *
47  
48 Stevan Little <stevan@cpan.org>
49  
50 =item *
51  
52 Brian Fraser <hugmeir@cpan.org>
53  
54 =back
55  
56 =head1 COPYRIGHT AND LICENSE
57  
58 This software is copyright (c) 2016 by Mickey Nasriachi, Stevan Little, Brian Fraser.
59  
60 This is free software; you can redistribute it and/or modify it under
61 the same terms as the Perl 5 programming language system itself.
62  
63 =cut
« Client/Request/RetrieveAll.pm ↑ Summary Client/Request/RetrieveRelationships.pm »