File Coverage

blib/lib/Food/ECodes/Additive.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 15 15 100.0


line stmt bran cond sub pod time code
1             package Food::ECodes::Additive;
2              
3             $Food::ECodes::Additive::VERSION = '0.18';
4             $Food::ECodes::Additive::AUTHORITY = 'cpan:MANWAR';
5              
6             =head1 NAME
7              
8             Food::ECodes::Additive - Placeholder for Food Additive.
9              
10             =head1 VERSION
11              
12             Version 0.18
13              
14             =cut
15              
16 2     2   30 use 5.006;
  2         6  
17 2     2   12 use Data::Dumper;
  2         3  
  2         79  
18              
19 2     2   954 use Moo;
  2         23578  
  2         11  
20 2     2   3676 use namespace::clean;
  2         25485  
  2         15  
21              
22             has 'id' => (is => 'ro');
23             has 'name' => (is => 'ro');
24             has 'status' => (is => 'ro');
25             has 'purpose' => (is => 'ro');
26             has 'eu_approved' => (is => 'ro');
27             has 'us_approved' => (is => 'ro');
28             has 'vegetarian' => (is => 'ro');
29              
30             =head1 SYNOPSIS
31              
32             use strict; use warnings;
33             use Food::ECodes;
34              
35             my $ecode = Food::ECodes->new;
36             my $additive = $ecode->search('E100');
37              
38             print "Id : ", $additive->id, "\n";
39             print "Name : ", $additive->name, "\n";
40             print "Status : ", $additive->status, "\n";
41             print "Purpose : ", $additive->purpose, "\n";
42             print "EU Approved: ", $additive->eu_approved, "\n";
43             print "US Approved: ", $additive->us_approved, "\n";
44             print "Vegetarian : ", $additive->vegetarian, "\n";
45              
46             =head1 METHODS
47              
48             =head2 id()
49              
50             =head2 name()
51              
52             =head2 status()
53              
54             =head2 purpose()
55              
56             =head2 eu_approved()
57              
58             =head2 us_approved()
59              
60             =head2 vegetarian()
61              
62             =head1 AUTHOR
63              
64             Mohammad S Anwar, C<< >>
65              
66             =head1 REPOSITORY
67              
68             L
69              
70             =head1 BUGS
71              
72             Please report any bugs or feature requests to C
73             or through the web interface at L.
74             I will be notified, and then you'll automatically be notified of progress on your
75             bug as I make changes.
76              
77             =head1 SUPPORT
78              
79             You can find documentation for this module with the perldoc command.
80              
81             perldoc Food::ECodes::Additive
82              
83             You can also look for information at:
84              
85             =over 4
86              
87             =item * RT: CPAN's request tracker
88              
89             L
90              
91             =item * AnnoCPAN: Annotated CPAN documentation
92              
93             L
94              
95             =item * CPAN Ratings
96              
97             L
98              
99             =item * Search CPAN
100              
101             L
102              
103             =back
104              
105             =head1 LICENSE AND COPYRIGHT
106              
107             Copyright (C) 2011 - 2016 Mohammad S Anwar.
108              
109             This program is free software; you can redistribute it and/or modify it under
110             the terms of the the Artistic License (2.0). You may obtain a copy of the full
111             license at:
112              
113             L
114              
115             Any use, modification, and distribution of the Standard or Modified Versions is
116             governed by this Artistic License.By using, modifying or distributing the Package,
117             you accept this license. Do not use, modify, or distribute the Package, if you do
118             not accept this license.
119              
120             If your Modified Version has been derived from a Modified Version made by someone
121             other than you,you are nevertheless required to ensure that your Modified Version
122             complies with the requirements of this license.
123              
124             This license does not grant you the right to use any trademark, service mark,
125             tradename, or logo of the Copyright Holder.
126              
127             This license includes the non-exclusive, worldwide, free-of-charge patent license
128             to make, have made, use, offer to sell, sell, import and otherwise transfer the
129             Package with respect to any patent claims licensable by the Copyright Holder that
130             are necessarily infringed by the Package. If you institute patent litigation
131             (including a cross-claim or counterclaim) against any party alleging that the
132             Package constitutes direct or contributory patent infringement,then this Artistic
133             License to you shall terminate on the date that such litigation is filed.
134              
135             Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND
136             CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED
137             WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
138             NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL LAW. UNLESS
139             REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT,
140             INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE
141             OF THE PACKAGE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
142              
143             =cut
144              
145             1; # End of Food::ECodes::Additive