File Coverage

blib/lib/JSON/API/v1/Roles/MetaObject.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


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