line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::GialloZafferano::Ingredient; |
2
|
1
|
|
|
1
|
|
4
|
use Mojo::Base -base; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
93
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
=encoding utf-8 |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
=head1 NAME |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
WebService::GialloZafferano::Ingredient - It represent the Ingredient of a L |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 SYNOPSIS |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
my $Ingredient = WebService::GialloZafferano::Ingredient->new(); |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 DESCRIPTION |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
WebService::GialloZafferano::Ingredient represent an Ingredient of a L to the site GialloZafferano.it . |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=over |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=item name |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
$Ingredient->name() #gets the name of the ingredient |
25
|
|
|
|
|
|
|
$Ingredient->name("Sugar") #sets the name |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
returns undef on error |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=item quantity |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
$Ingredient->quantity() #gets the quantity of the ingredient |
32
|
|
|
|
|
|
|
$Ingredient->quantity("q.b.") #sets the quantity |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
returns undef on error |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=back |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 AUTHOR |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
mudler Emudler@dark-lab.netE |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 COPYRIGHT |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
Copyright 2014 mudler |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 LICENSE |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
49
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 SEE ALSO |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
L, L |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=cut |
56
|
|
|
|
|
|
|
has 'name'; |
57
|
|
|
|
|
|
|
has 'quantity'; |
58
|
|
|
|
|
|
|
1; |