File Coverage

blib/lib/WebAPI/DBIC/Resource/GenericSet.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 WebAPI::DBIC::Resource::GenericSet;
2             $WebAPI::DBIC::Resource::GenericSet::VERSION = '0.004001';
3              
4 2     2   15117619 use Moo;
  2         28907  
  2         13  
5 2     2   3537 use namespace::clean;
  2         20307  
  2         11  
6              
7             extends 'WebAPI::DBIC::Resource::GenericCore';
8             with 'WebAPI::DBIC::Resource::Role::Set',
9             'WebAPI::DBIC::Resource::Role::SetWritable',
10             # Enable ActiveModel support:
11             'WebAPI::DBIC::Resource::ActiveModel::Role::DBIC', # XXX move out?
12             'WebAPI::DBIC::Resource::ActiveModel::Role::Set',
13             'WebAPI::DBIC::Resource::ActiveModel::Role::SetWritable',
14             # Enable HAL support:
15             'WebAPI::DBIC::Resource::HAL::Role::DBIC', # XXX move out?
16             'WebAPI::DBIC::Resource::HAL::Role::Set',
17             'WebAPI::DBIC::Resource::HAL::Role::SetWritable',
18             # Enable JSON API support:
19             'WebAPI::DBIC::Resource::JSONAPI::Role::DBIC', # XXX move out?
20             'WebAPI::DBIC::Resource::JSONAPI::Role::Set',
21             'WebAPI::DBIC::Resource::JSONAPI::Role::SetWritable',
22             ;
23              
24             1;
25              
26             __END__
27              
28             =pod
29              
30             =encoding UTF-8
31              
32             =head1 NAME
33              
34             WebAPI::DBIC::Resource::GenericSet
35              
36             =head1 VERSION
37              
38             version 0.004001
39              
40             =head1 NAME
41              
42             WebAPI::DBIC::Resource::GenericSet - a set of roles to implement a generic DBIC set resource
43              
44             =head1 AUTHOR
45              
46             Tim Bunce <Tim.Bunce@pobox.com>
47              
48             =head1 COPYRIGHT AND LICENSE
49              
50             This software is copyright (c) 2015 by Tim Bunce.
51              
52             This is free software; you can redistribute it and/or modify it under
53             the same terms as the Perl 5 programming language system itself.
54              
55             =cut