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