Model/Trait/Exclude.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 20 / 20 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Model/TypeMap/Common.pm ↑ Summary Model/Trait/Field.pm »
1 package Elastic::Model::Trait::Exclude;
2 23 $Elastic::Model::Trait::Exclude::VERSION = '0.52';
3 23 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 23 ▶use Moose::Exporter;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 23 ▶use MooseX::Types::Moose qw(Bool);
Subroutine BEGIN: called CC=1 SCAR=0.0
6 23 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 23 Moose::Exporter->setup_import_methods(
9 role_metaroles =>
10 { applied_attribute => ['Elastic::Model::Trait::Exclude'], },
11 class_metaroles => { attribute => ['Elastic::Model::Trait::Exclude'] },
12 );
13  
14 23 has 'exclude' => ( isa => Bool, is => 'ro', default => 1 );
15  
16 23 1;
17  
18 =pod
19  
20 =encoding UTF-8
21  
22 =head1 NAME
23  
24 Elastic::Model::Trait::Exclude - An internal use trait
25  
26 =head1 VERSION
27  
28 version 0.52
29  
30 =head1 DESCRIPTION
31  
32 This trait is used by Elastic::Model doc attributes which shouldn't be
33 stored in Elasticsearch. It implements just the
34 L<Elastic::Model::Trait::Field/"exclude"> keyword.
35  
36 =head1 AUTHOR
37  
38 Clinton Gormley <drtech@cpan.org>
39  
40 =head1 COPYRIGHT AND LICENSE
41  
42 This software is copyright (c) 2015 by Clinton Gormley.
43  
44 This is free software; you can redistribute it and/or modify it under
45 the same terms as the Perl 5 programming language system itself.
46  
47 =cut
48  
49 __END__
« Model/TypeMap/Common.pm ↑ Summary Model/Trait/Field.pm »