line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package JSON::API::v1::Roles::Links; |
2
|
|
|
|
|
|
|
our $VERSION = '0.001'; |
3
|
4
|
|
|
4
|
|
2894
|
use Moose::Role; |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
31
|
|
4
|
4
|
|
|
4
|
|
22408
|
use namespace::autoclean; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
51
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# ABSTRACT: An role that implements the default links object |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
has links => ( |
9
|
|
|
|
|
|
|
is => 'ro', |
10
|
|
|
|
|
|
|
isa => 'JSON::API::v1::Links', |
11
|
|
|
|
|
|
|
predicate => 'has_links', |
12
|
|
|
|
|
|
|
); |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
1; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
__END__ |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=pod |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=encoding UTF-8 |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 NAME |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
JSON::API::v1::Roles::Links - An role that implements the default links object |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 VERSION |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
version 0.001 |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 SYNOPSIS |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 DESCRIPTION |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
This role makes sure that you never have to implement a links attributes. |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 AUTHOR |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
Wesley Schwengle <waterkip@cpan.org> |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
This software is Copyright (c) 2020 by Wesley Schwengle. |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
This is free software, licensed under: |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
The (three-clause) BSD License |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=cut |