Top Level Namespace
Defined Under Namespace
Modules: P6
Classes: Alimento, List, Menu, Node, Plato, Plato_dsl, Plato_i
Instance Method Summary
collapse
Instance Method Details
#ags(x) ⇒ Object
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# File 'lib/p6/indicadores.rb', line 41
def ags(x)
if x < 6.7
return 1
elsif x >= 6.7 && x <= 10
return 2
else
return 3
end
end
|
#energia(x) ⇒ Object
1
2
3
4
5
6
7
8
9
10
11
12
|
# File 'lib/p6/indicadores.rb', line 1
def energia(x)
if x < 670
return 1
elsif x >= 670 && x<= 830
return 2
else
return 3
end
end
|
#fibra(x) ⇒ Object
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# File 'lib/p6/indicadores.rb', line 27
def fibra(x)
if x > 8
return 1
elsif x >= 6 && x <= 8
return 2
else
return 3
end
end
|
#huella_carbono(x) ⇒ Object
68
69
70
71
72
73
74
75
76
77
78
79
|
# File 'lib/p6/indicadores.rb', line 68
def huella_carbono(x)
if x < 800
return 1
elsif x >= 800 && x <= 1200
return 2
else
return 3
end
end
|
#huella_hidrica(x) ⇒ Object
81
82
83
84
85
86
87
88
89
90
91
92
|
# File 'lib/p6/indicadores.rb', line 81
def huella_hidrica(x)
if x < 640
return 1
elsif x >= 640 && x <= 975
return 2
else
return 3
end
end
|
#huella_material(x) ⇒ Object
55
56
57
58
59
60
61
62
63
64
65
66
|
# File 'lib/p6/indicadores.rb', line 55
def huella_material(x)
if x < 2670
return 1
elsif x >= 2670 && x <= 4000
return 2
else
return 3
end
end
|
#sal(x) ⇒ Object
14
15
16
17
18
19
20
21
22
23
24
25
|
# File 'lib/p6/indicadores.rb', line 14
def sal(x)
if x < 2
return 1
elsif x >= 2 && x <= 3.3
return 2
else
return 3
end
end
|
#uso_terreno(x) ⇒ Object
94
95
96
97
98
99
100
101
102
103
104
105
|
# File 'lib/p6/indicadores.rb', line 94
def uso_terreno(x)
if x < 1.25
return 1
elsif x >= 1.25 && x <= 1.875
return 2
else
return 3
end
end
|