line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package JSON::API::v1::Roles::TO_JSON; |
2
|
|
|
|
|
|
|
our $VERSION = '0.001'; |
3
|
7
|
|
|
7
|
|
8087
|
use Moose::Role; |
|
7
|
|
|
|
|
22627
|
|
|
7
|
|
|
|
|
48
|
|
4
|
7
|
|
|
7
|
|
42293
|
use namespace::autoclean; |
|
7
|
|
|
|
|
55
|
|
|
7
|
|
|
|
|
74
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# ABSTRACT: An interface for Objects to adhere to |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
requires qw( |
9
|
|
|
|
|
|
|
TO_JSON |
10
|
|
|
|
|
|
|
); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
1; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
__END__ |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=pod |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=encoding UTF-8 |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 NAME |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
JSON::API::v1::Roles::TO_JSON - An interface for Objects to adhere to |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 VERSION |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
version 0.001 |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 SYNOPSIS |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 DESCRIPTION |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
This role implements an interface to which consumers must adhere to. It defines |
34
|
|
|
|
|
|
|
several methods that L<JSON::API::v1> namespaced objects must implement |
35
|
|
|
|
|
|
|
to support the JSON API v1 specifications. |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 AUTHOR |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
Wesley Schwengle |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 LICENSE and COPYRIGHT |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
Wesley Schwengle, 2017. |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 AUTHOR |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
Wesley Schwengle <waterkip@cpan.org> |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
This software is Copyright (c) 2020 by Wesley Schwengle. |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
This is free software, licensed under: |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
The (three-clause) BSD License |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=cut |