gema-alu0101040882 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +1 -0
  3. data/.gitignore +8 -0
  4. data/.rake_tasks~ +7 -0
  5. data/.rspec +3 -0
  6. data/.travis.yml +5 -0
  7. data/.yardoc/checksums +9 -0
  8. data/.yardoc/complete +0 -0
  9. data/.yardoc/object_types +0 -0
  10. data/.yardoc/objects/root.dat +0 -0
  11. data/.yardoc/proxy_types +0 -0
  12. data/Gemfile +6 -0
  13. data/Gemfile.lock +111 -0
  14. data/Guardfile +82 -0
  15. data/README.md +32 -0
  16. data/Rakefile +8 -0
  17. data/bin/bundle +105 -0
  18. data/bin/console +14 -0
  19. data/bin/htmldiff +29 -0
  20. data/bin/ldiff +29 -0
  21. data/bin/rake +29 -0
  22. data/bin/rspec +29 -0
  23. data/bin/setup +8 -0
  24. data/doc/Dll.html +1502 -0
  25. data/doc/Dll/Node.html +398 -0
  26. data/doc/Etiqueta_nut.html +1717 -0
  27. data/doc/Gema.html +134 -0
  28. data/doc/Individuo.html +289 -0
  29. data/doc/Menu_dietetico.html +483 -0
  30. data/doc/Paciente.html +233 -0
  31. data/doc/Paciente_obeso.html +1386 -0
  32. data/doc/Valores_nut.html +777 -0
  33. data/doc/_index.html +208 -0
  34. data/doc/class_list.html +51 -0
  35. data/doc/css/common.css +1 -0
  36. data/doc/css/full_list.css +58 -0
  37. data/doc/css/style.css +496 -0
  38. data/doc/file.README.html +115 -0
  39. data/doc/file_list.html +56 -0
  40. data/doc/frames.html +17 -0
  41. data/doc/index.html +115 -0
  42. data/doc/js/app.js +292 -0
  43. data/doc/js/full_list.js +216 -0
  44. data/doc/js/jquery.js +4 -0
  45. data/doc/method_list.html +651 -0
  46. data/doc/top-level-namespace.html +112 -0
  47. data/gema.gemspec +43 -0
  48. data/lib/gema.rb +14 -0
  49. data/lib/gema/etiqueta_nut.rb +46 -0
  50. data/lib/gema/individuo.rb +14 -0
  51. data/lib/gema/list.rb +212 -0
  52. data/lib/gema/menu.rb +134 -0
  53. data/lib/gema/menu_dietetico.rb +37 -0
  54. data/lib/gema/paciente.rb +12 -0
  55. data/lib/gema/paciente_obeso.rb +75 -0
  56. data/lib/gema/valores_nut.rb +40 -0
  57. data/lib/gema/version.rb +4 -0
  58. metadata +197 -0
data/doc/Paciente.html ADDED
@@ -0,0 +1,233 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Class: Paciente
8
+
9
+ &mdash; Documentation by YARD 0.9.16
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ pathId = "Paciente";
19
+ relpath = '';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="_index.html">Index (P)</a> &raquo;
40
+
41
+
42
+ <span class="title">Paciente</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Class: Paciente
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName"><span class='object_link'><a href="Individuo.html" title="Individuo (class)">Individuo</a></span></span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next"><span class='object_link'><a href="Individuo.html" title="Individuo (class)">Individuo</a></span></li>
78
+
79
+ <li class="next">Paciente</li>
80
+
81
+ </ul>
82
+ <a href="#" class="inheritanceTree">show all</a>
83
+
84
+ </dd>
85
+ </dl>
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+ <dl>
98
+ <dt>Defined in:</dt>
99
+ <dd>lib/gema/paciente.rb</dd>
100
+ </dl>
101
+
102
+ </div>
103
+
104
+ <h2>Overview</h2><div class="docstring">
105
+ <div class="discussion">
106
+
107
+ <p>Paciente de una consulta</p>
108
+
109
+
110
+ </div>
111
+ </div>
112
+ <div class="tags">
113
+
114
+
115
+ </div><div id="subclasses">
116
+ <h2>Direct Known Subclasses</h2>
117
+ <p class="children"><span class='object_link'><a href="Paciente_obeso.html" title="Paciente_obeso (class)">Paciente_obeso</a></span></p>
118
+ </div>
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+ <h2>
128
+ Instance Method Summary
129
+ <small><a href="#" class="summary_toggle">collapse</a></small>
130
+ </h2>
131
+
132
+ <ul class="summary">
133
+
134
+ <li class="public ">
135
+ <span class="summary_signature">
136
+
137
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(nombre, edad, genero) &#x21d2; Paciente </a>
138
+
139
+
140
+
141
+ </span>
142
+
143
+
144
+ <span class="note title constructor">constructor</span>
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+ <span class="summary_desc"><div class='inline'>
154
+ <p>A new instance of Paciente.</p>
155
+ </div></span>
156
+
157
+ </li>
158
+
159
+
160
+ </ul>
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Individuo.html" title="Individuo (class)">Individuo</a></span></h3>
173
+ <p class="inherited"><span class='object_link'><a href="Individuo.html#to_s-instance_method" title="Individuo#to_s (method)">#to_s</a></span></p>
174
+ <div id="constructor_details" class="method_details_list">
175
+ <h2>Constructor Details</h2>
176
+
177
+ <div class="method_details first">
178
+ <h3 class="signature first" id="initialize-instance_method">
179
+
180
+ #<strong>initialize</strong>(nombre, edad, genero) &#x21d2; <tt><span class='object_link'><a href="" title="Paciente (class)">Paciente</a></span></tt>
181
+
182
+
183
+
184
+
185
+
186
+ </h3><div class="docstring">
187
+ <div class="discussion">
188
+
189
+ <p>Returns a new instance of Paciente</p>
190
+
191
+
192
+ </div>
193
+ </div>
194
+ <div class="tags">
195
+
196
+
197
+ </div><table class="source_code">
198
+ <tr>
199
+ <td>
200
+ <pre class="lines">
201
+
202
+
203
+ 5
204
+ 6
205
+ 7
206
+ 8</pre>
207
+ </td>
208
+ <td>
209
+ <pre class="code"><span class="info file"># File 'lib/gema/paciente.rb', line 5</span>
210
+
211
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_nombre'>nombre</span><span class='comma'>,</span><span class='id identifier rubyid_edad'>edad</span><span class='comma'>,</span><span class='id identifier rubyid_genero'>genero</span><span class='rparen'>)</span>
212
+ <span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_nombre'>nombre</span><span class='comma'>,</span><span class='id identifier rubyid_edad'>edad</span><span class='comma'>,</span><span class='id identifier rubyid_genero'>genero</span><span class='rparen'>)</span>
213
+ <span class='ivar'>@valoracion</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Valores_nut.html" title="Valores_nut (class)">Valores_nut</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Valores_nut.html#initialize-instance_method" title="Valores_nut#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_nombre'>nombre</span><span class='comma'>,</span><span class='id identifier rubyid_edad'>edad</span><span class='comma'>,</span><span class='id identifier rubyid_genero'>genero</span><span class='rparen'>)</span>
214
+ <span class='kw'>end</span></pre>
215
+ </td>
216
+ </tr>
217
+ </table>
218
+ </div>
219
+
220
+ </div>
221
+
222
+
223
+ </div>
224
+
225
+ <div id="footer">
226
+ Generated on Wed Dec 19 11:49:27 2018 by
227
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
228
+ 0.9.16 (ruby-2.5.1).
229
+ </div>
230
+
231
+ </div>
232
+ </body>
233
+ </html>
@@ -0,0 +1,1386 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Class: Paciente_obeso
8
+
9
+ &mdash; Documentation by YARD 0.9.16
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ pathId = "Paciente_obeso";
19
+ relpath = '';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="_index.html">Index (P)</a> &raquo;
40
+
41
+
42
+ <span class="title">Paciente_obeso</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Class: Paciente_obeso
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName"><span class='object_link'><a href="Paciente.html" title="Paciente (class)">Paciente</a></span></span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next"><span class='object_link'><a href="Individuo.html" title="Individuo (class)">Individuo</a></span></li>
78
+
79
+ <li class="next"><span class='object_link'><a href="Paciente.html" title="Paciente (class)">Paciente</a></span></li>
80
+
81
+ <li class="next">Paciente_obeso</li>
82
+
83
+ </ul>
84
+ <a href="#" class="inheritanceTree">show all</a>
85
+
86
+ </dd>
87
+ </dl>
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+ <dl>
100
+ <dt>Defined in:</dt>
101
+ <dd>lib/gema/paciente_obeso.rb</dd>
102
+ </dl>
103
+
104
+ </div>
105
+
106
+ <h2>Overview</h2><div class="docstring">
107
+ <div class="discussion">
108
+
109
+ <p>Paciente de una consulta al que se le han calculado los datos
110
+ antropometrícos</p>
111
+
112
+
113
+ </div>
114
+ </div>
115
+ <div class="tags">
116
+
117
+
118
+ </div>
119
+
120
+
121
+
122
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
123
+ <ul class="summary">
124
+
125
+ <li class="public ">
126
+ <span class="summary_signature">
127
+
128
+ <a href="#efecto_termogeno_-instance_method" title="#efecto_termogeno_ (instance method)">#<strong>efecto_termogeno_</strong> &#x21d2; Object </a>
129
+
130
+
131
+
132
+ </span>
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+ <span class="summary_desc"><div class='inline'>
146
+ <p>Returns the value of attribute efecto_termogeno_.</p>
147
+ </div></span>
148
+
149
+ </li>
150
+
151
+
152
+ <li class="public ">
153
+ <span class="summary_signature">
154
+
155
+ <a href="#factor_actividad_fisica_-instance_method" title="#factor_actividad_fisica_ (instance method)">#<strong>factor_actividad_fisica_</strong> &#x21d2; Object </a>
156
+
157
+
158
+
159
+ </span>
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+ <span class="summary_desc"><div class='inline'>
173
+ <p>Returns the value of attribute factor_actividad_fisica_.</p>
174
+ </div></span>
175
+
176
+ </li>
177
+
178
+
179
+ <li class="public ">
180
+ <span class="summary_signature">
181
+
182
+ <a href="#gasto_energetico_actividad_fisica_-instance_method" title="#gasto_energetico_actividad_fisica_ (instance method)">#<strong>gasto_energetico_actividad_fisica_</strong> &#x21d2; Object </a>
183
+
184
+
185
+
186
+ </span>
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+ <span class="summary_desc"><div class='inline'>
200
+ <p>Returns the value of attribute gasto_energetico_actividad_fisica_.</p>
201
+ </div></span>
202
+
203
+ </li>
204
+
205
+
206
+ <li class="public ">
207
+ <span class="summary_signature">
208
+
209
+ <a href="#gasto_energetico_basal_-instance_method" title="#gasto_energetico_basal_ (instance method)">#<strong>gasto_energetico_basal_</strong> &#x21d2; Object </a>
210
+
211
+
212
+
213
+ </span>
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+ <span class="summary_desc"><div class='inline'>
227
+ <p>Returns the value of attribute gasto_energetico_basal_.</p>
228
+ </div></span>
229
+
230
+ </li>
231
+
232
+
233
+ <li class="public ">
234
+ <span class="summary_signature">
235
+
236
+ <a href="#gasto_energetico_total_-instance_method" title="#gasto_energetico_total_ (instance method)">#<strong>gasto_energetico_total_</strong> &#x21d2; Object </a>
237
+
238
+
239
+
240
+ </span>
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
+ <span class="summary_desc"><div class='inline'>
254
+ <p>Returns the value of attribute gasto_energetico_total_.</p>
255
+ </div></span>
256
+
257
+ </li>
258
+
259
+
260
+ <li class="public ">
261
+ <span class="summary_signature">
262
+
263
+ <a href="#grasa-instance_method" title="#grasa (instance method)">#<strong>grasa</strong> &#x21d2; Object </a>
264
+
265
+
266
+
267
+ </span>
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+
277
+
278
+
279
+
280
+ <span class="summary_desc"><div class='inline'>
281
+ <p>Returns the value of attribute grasa.</p>
282
+ </div></span>
283
+
284
+ </li>
285
+
286
+
287
+ <li class="public ">
288
+ <span class="summary_signature">
289
+
290
+ <a href="#imc-instance_method" title="#imc (instance method)">#<strong>imc</strong> &#x21d2; Object </a>
291
+
292
+
293
+
294
+ </span>
295
+
296
+
297
+
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+
306
+
307
+ <span class="summary_desc"><div class='inline'>
308
+ <p>Returns the value of attribute imc.</p>
309
+ </div></span>
310
+
311
+ </li>
312
+
313
+
314
+ <li class="public ">
315
+ <span class="summary_signature">
316
+
317
+ <a href="#peso_teorico_ideal_-instance_method" title="#peso_teorico_ideal_ (instance method)">#<strong>peso_teorico_ideal_</strong> &#x21d2; Object </a>
318
+
319
+
320
+
321
+ </span>
322
+
323
+
324
+
325
+
326
+
327
+
328
+
329
+
330
+
331
+
332
+
333
+
334
+ <span class="summary_desc"><div class='inline'>
335
+ <p>Returns the value of attribute peso_teorico_ideal_.</p>
336
+ </div></span>
337
+
338
+ </li>
339
+
340
+
341
+ <li class="public ">
342
+ <span class="summary_signature">
343
+
344
+ <a href="#rcc-instance_method" title="#rcc (instance method)">#<strong>rcc</strong> &#x21d2; Object </a>
345
+
346
+
347
+
348
+ </span>
349
+
350
+
351
+
352
+
353
+
354
+
355
+
356
+
357
+
358
+
359
+
360
+
361
+ <span class="summary_desc"><div class='inline'>
362
+ <p>Returns the value of attribute rcc.</p>
363
+ </div></span>
364
+
365
+ </li>
366
+
367
+
368
+ </ul>
369
+
370
+
371
+
372
+
373
+
374
+ <h2>
375
+ Instance Method Summary
376
+ <small><a href="#" class="summary_toggle">collapse</a></small>
377
+ </h2>
378
+
379
+ <ul class="summary">
380
+
381
+ <li class="public ">
382
+ <span class="summary_signature">
383
+
384
+ <a href="#efecto_termogeno-instance_method" title="#efecto_termogeno (instance method)">#<strong>efecto_termogeno</strong> &#x21d2; Object </a>
385
+
386
+
387
+
388
+ </span>
389
+
390
+
391
+
392
+
393
+
394
+
395
+
396
+
397
+
398
+ <span class="summary_desc"><div class='inline'>
399
+ <p>Calcula el efecto termogeno de una persona.</p>
400
+ </div></span>
401
+
402
+ </li>
403
+
404
+
405
+ <li class="public ">
406
+ <span class="summary_signature">
407
+
408
+ <a href="#factor_actividad_fisica-instance_method" title="#factor_actividad_fisica (instance method)">#<strong>factor_actividad_fisica</strong>(nivel_actividad) &#x21d2; Object </a>
409
+
410
+
411
+
412
+ </span>
413
+
414
+
415
+
416
+
417
+
418
+
419
+
420
+
421
+
422
+ <span class="summary_desc"><div class='inline'>
423
+ <p>Calcula el factor de actividad fisica de una persona.</p>
424
+ </div></span>
425
+
426
+ </li>
427
+
428
+
429
+ <li class="public ">
430
+ <span class="summary_signature">
431
+
432
+ <a href="#gasto_actividad_fisica-instance_method" title="#gasto_actividad_fisica (instance method)">#<strong>gasto_actividad_fisica</strong> &#x21d2; Object </a>
433
+
434
+
435
+
436
+ </span>
437
+
438
+
439
+
440
+
441
+
442
+
443
+
444
+
445
+
446
+ <span class="summary_desc"><div class='inline'>
447
+ <p>calcula el gasto de la actividad fisica de una perosna.</p>
448
+ </div></span>
449
+
450
+ </li>
451
+
452
+
453
+ <li class="public ">
454
+ <span class="summary_signature">
455
+
456
+ <a href="#gasto_energetico_basal-instance_method" title="#gasto_energetico_basal (instance method)">#<strong>gasto_energetico_basal</strong> &#x21d2; Object </a>
457
+
458
+
459
+
460
+ </span>
461
+
462
+
463
+
464
+
465
+
466
+
467
+
468
+
469
+
470
+ <span class="summary_desc"><div class='inline'>
471
+ <p>Gasto energético basal.</p>
472
+ </div></span>
473
+
474
+ </li>
475
+
476
+
477
+ <li class="public ">
478
+ <span class="summary_signature">
479
+
480
+ <a href="#gasto_energetico_total-instance_method" title="#gasto_energetico_total (instance method)">#<strong>gasto_energetico_total</strong> &#x21d2; Object </a>
481
+
482
+
483
+
484
+ </span>
485
+
486
+
487
+
488
+
489
+
490
+
491
+
492
+
493
+
494
+ <span class="summary_desc"><div class='inline'>
495
+ <p>Calcula el gasto energetico total de una persona.</p>
496
+ </div></span>
497
+
498
+ </li>
499
+
500
+
501
+ <li class="public ">
502
+ <span class="summary_signature">
503
+
504
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(nombre, edad, genero, peso, talla, sexo, c_cintura, c_cadera) &#x21d2; Paciente_obeso </a>
505
+
506
+
507
+
508
+ </span>
509
+
510
+
511
+ <span class="note title constructor">constructor</span>
512
+
513
+
514
+
515
+
516
+
517
+
518
+
519
+
520
+ <span class="summary_desc"><div class='inline'>
521
+ <p>A new instance of Paciente_obeso.</p>
522
+ </div></span>
523
+
524
+ </li>
525
+
526
+
527
+ <li class="public ">
528
+ <span class="summary_signature">
529
+
530
+ <a href="#peso_teorico_ideal-instance_method" title="#peso_teorico_ideal (instance method)">#<strong>peso_teorico_ideal</strong> &#x21d2; Object </a>
531
+
532
+
533
+
534
+ </span>
535
+
536
+
537
+
538
+
539
+
540
+
541
+
542
+
543
+
544
+ <span class="summary_desc"><div class='inline'>
545
+ <p>Peso teórico ideal.</p>
546
+ </div></span>
547
+
548
+ </li>
549
+
550
+
551
+ <li class="public ">
552
+ <span class="summary_signature">
553
+
554
+ <a href="#to_s-instance_method" title="#to_s (instance method)">#<strong>to_s</strong> &#x21d2; Object </a>
555
+
556
+
557
+
558
+ </span>
559
+
560
+
561
+
562
+
563
+
564
+
565
+
566
+
567
+
568
+ <span class="summary_desc"><div class='inline'>
569
+ <p>Convierte el Paciente_obeso en una cadena.</p>
570
+ </div></span>
571
+
572
+ </li>
573
+
574
+
575
+ </ul>
576
+
577
+
578
+
579
+
580
+
581
+
582
+
583
+
584
+
585
+
586
+
587
+
588
+
589
+
590
+ <div id="constructor_details" class="method_details_list">
591
+ <h2>Constructor Details</h2>
592
+
593
+ <div class="method_details first">
594
+ <h3 class="signature first" id="initialize-instance_method">
595
+
596
+ #<strong>initialize</strong>(nombre, edad, genero, peso, talla, sexo, c_cintura, c_cadera) &#x21d2; <tt><span class='object_link'><a href="" title="Paciente_obeso (class)">Paciente_obeso</a></span></tt>
597
+
598
+
599
+
600
+
601
+
602
+ </h3><div class="docstring">
603
+ <div class="discussion">
604
+
605
+ <p>Returns a new instance of Paciente_obeso</p>
606
+
607
+
608
+ </div>
609
+ </div>
610
+ <div class="tags">
611
+
612
+
613
+ </div><table class="source_code">
614
+ <tr>
615
+ <td>
616
+ <pre class="lines">
617
+
618
+
619
+ 6
620
+ 7
621
+ 8
622
+ 9
623
+ 10
624
+ 11
625
+ 12
626
+ 13
627
+ 14
628
+ 15
629
+ 16
630
+ 17
631
+ 18</pre>
632
+ </td>
633
+ <td>
634
+ <pre class="code"><span class="info file"># File 'lib/gema/paciente_obeso.rb', line 6</span>
635
+
636
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_nombre'>nombre</span><span class='comma'>,</span><span class='id identifier rubyid_edad'>edad</span><span class='comma'>,</span><span class='id identifier rubyid_genero'>genero</span><span class='comma'>,</span><span class='id identifier rubyid_peso'>peso</span><span class='comma'>,</span><span class='id identifier rubyid_talla'>talla</span><span class='comma'>,</span><span class='id identifier rubyid_sexo'>sexo</span><span class='comma'>,</span><span class='id identifier rubyid_c_cintura'>c_cintura</span><span class='comma'>,</span><span class='id identifier rubyid_c_cadera'>c_cadera</span><span class='rparen'>)</span>
637
+ <span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_nombre'>nombre</span><span class='comma'>,</span><span class='id identifier rubyid_edad'>edad</span><span class='comma'>,</span><span class='id identifier rubyid_genero'>genero</span><span class='rparen'>)</span>
638
+
639
+ <span class='ivar'>@imc</span> <span class='op'>=</span> <span class='ivar'>@valoracion</span><span class='period'>.</span><span class='id identifier rubyid_imc'>imc</span><span class='lparen'>(</span><span class='id identifier rubyid_peso'>peso</span><span class='comma'>,</span><span class='id identifier rubyid_talla'>talla</span><span class='rparen'>)</span>
640
+ <span class='ivar'>@grasa</span> <span class='op'>=</span> <span class='ivar'>@valoracion</span><span class='period'>.</span><span class='id identifier rubyid_grasa'>grasa</span><span class='lparen'>(</span><span class='id identifier rubyid_sexo'>sexo</span><span class='comma'>,</span><span class='id identifier rubyid_peso'>peso</span><span class='comma'>,</span><span class='id identifier rubyid_talla'>talla</span><span class='rparen'>)</span>
641
+ <span class='ivar'>@rcc</span> <span class='op'>=</span> <span class='ivar'>@valoracion</span><span class='period'>.</span><span class='id identifier rubyid_rcc'>rcc</span><span class='lparen'>(</span><span class='id identifier rubyid_c_cintura'>c_cintura</span><span class='comma'>,</span><span class='id identifier rubyid_c_cadera'>c_cadera</span><span class='rparen'>)</span>
642
+
643
+ <span class='ivar'>@peso</span> <span class='op'>=</span> <span class='id identifier rubyid_peso'>peso</span>
644
+ <span class='ivar'>@talla</span> <span class='op'>=</span> <span class='id identifier rubyid_talla'>talla</span>
645
+ <span class='ivar'>@sexo</span> <span class='op'>=</span> <span class='id identifier rubyid_sexo'>sexo</span>
646
+ <span class='ivar'>@c_cintura</span> <span class='op'>=</span> <span class='id identifier rubyid_c_cintura'>c_cintura</span>
647
+ <span class='ivar'>@c_cadera</span> <span class='op'>=</span> <span class='id identifier rubyid_c_cadera'>c_cadera</span>
648
+ <span class='kw'>end</span></pre>
649
+ </td>
650
+ </tr>
651
+ </table>
652
+ </div>
653
+
654
+ </div>
655
+
656
+ <div id="instance_attr_details" class="attr_details">
657
+ <h2>Instance Attribute Details</h2>
658
+
659
+
660
+ <span id="efecto_termogeno_=-instance_method"></span>
661
+ <div class="method_details first">
662
+ <h3 class="signature first" id="efecto_termogeno_-instance_method">
663
+
664
+ #<strong>efecto_termogeno_</strong> &#x21d2; <tt>Object</tt>
665
+
666
+
667
+
668
+
669
+
670
+ </h3><div class="docstring">
671
+ <div class="discussion">
672
+
673
+ <p>Returns the value of attribute efecto_termogeno_</p>
674
+
675
+
676
+ </div>
677
+ </div>
678
+ <div class="tags">
679
+
680
+
681
+ </div><table class="source_code">
682
+ <tr>
683
+ <td>
684
+ <pre class="lines">
685
+
686
+
687
+ 4
688
+ 5
689
+ 6</pre>
690
+ </td>
691
+ <td>
692
+ <pre class="code"><span class="info file"># File 'lib/gema/paciente_obeso.rb', line 4</span>
693
+
694
+ <span class='kw'>def</span> <span class='id identifier rubyid_efecto_termogeno_'>efecto_termogeno_</span>
695
+ <span class='ivar'>@efecto_termogeno_</span>
696
+ <span class='kw'>end</span></pre>
697
+ </td>
698
+ </tr>
699
+ </table>
700
+ </div>
701
+
702
+
703
+ <span id="factor_actividad_fisica_=-instance_method"></span>
704
+ <div class="method_details ">
705
+ <h3 class="signature " id="factor_actividad_fisica_-instance_method">
706
+
707
+ #<strong>factor_actividad_fisica_</strong> &#x21d2; <tt>Object</tt>
708
+
709
+
710
+
711
+
712
+
713
+ </h3><div class="docstring">
714
+ <div class="discussion">
715
+
716
+ <p>Returns the value of attribute factor_actividad_fisica_</p>
717
+
718
+
719
+ </div>
720
+ </div>
721
+ <div class="tags">
722
+
723
+
724
+ </div><table class="source_code">
725
+ <tr>
726
+ <td>
727
+ <pre class="lines">
728
+
729
+
730
+ 4
731
+ 5
732
+ 6</pre>
733
+ </td>
734
+ <td>
735
+ <pre class="code"><span class="info file"># File 'lib/gema/paciente_obeso.rb', line 4</span>
736
+
737
+ <span class='kw'>def</span> <span class='id identifier rubyid_factor_actividad_fisica_'>factor_actividad_fisica_</span>
738
+ <span class='ivar'>@factor_actividad_fisica_</span>
739
+ <span class='kw'>end</span></pre>
740
+ </td>
741
+ </tr>
742
+ </table>
743
+ </div>
744
+
745
+
746
+ <span id="gasto_energetico_actividad_fisica_=-instance_method"></span>
747
+ <div class="method_details ">
748
+ <h3 class="signature " id="gasto_energetico_actividad_fisica_-instance_method">
749
+
750
+ #<strong>gasto_energetico_actividad_fisica_</strong> &#x21d2; <tt>Object</tt>
751
+
752
+
753
+
754
+
755
+
756
+ </h3><div class="docstring">
757
+ <div class="discussion">
758
+
759
+ <p>Returns the value of attribute gasto_energetico_actividad_fisica_</p>
760
+
761
+
762
+ </div>
763
+ </div>
764
+ <div class="tags">
765
+
766
+
767
+ </div><table class="source_code">
768
+ <tr>
769
+ <td>
770
+ <pre class="lines">
771
+
772
+
773
+ 4
774
+ 5
775
+ 6</pre>
776
+ </td>
777
+ <td>
778
+ <pre class="code"><span class="info file"># File 'lib/gema/paciente_obeso.rb', line 4</span>
779
+
780
+ <span class='kw'>def</span> <span class='id identifier rubyid_gasto_energetico_actividad_fisica_'>gasto_energetico_actividad_fisica_</span>
781
+ <span class='ivar'>@gasto_energetico_actividad_fisica_</span>
782
+ <span class='kw'>end</span></pre>
783
+ </td>
784
+ </tr>
785
+ </table>
786
+ </div>
787
+
788
+
789
+ <span id="gasto_energetico_basal_=-instance_method"></span>
790
+ <div class="method_details ">
791
+ <h3 class="signature " id="gasto_energetico_basal_-instance_method">
792
+
793
+ #<strong>gasto_energetico_basal_</strong> &#x21d2; <tt>Object</tt>
794
+
795
+
796
+
797
+
798
+
799
+ </h3><div class="docstring">
800
+ <div class="discussion">
801
+
802
+ <p>Returns the value of attribute gasto_energetico_basal_</p>
803
+
804
+
805
+ </div>
806
+ </div>
807
+ <div class="tags">
808
+
809
+
810
+ </div><table class="source_code">
811
+ <tr>
812
+ <td>
813
+ <pre class="lines">
814
+
815
+
816
+ 4
817
+ 5
818
+ 6</pre>
819
+ </td>
820
+ <td>
821
+ <pre class="code"><span class="info file"># File 'lib/gema/paciente_obeso.rb', line 4</span>
822
+
823
+ <span class='kw'>def</span> <span class='id identifier rubyid_gasto_energetico_basal_'>gasto_energetico_basal_</span>
824
+ <span class='ivar'>@gasto_energetico_basal_</span>
825
+ <span class='kw'>end</span></pre>
826
+ </td>
827
+ </tr>
828
+ </table>
829
+ </div>
830
+
831
+
832
+ <span id="gasto_energetico_total_=-instance_method"></span>
833
+ <div class="method_details ">
834
+ <h3 class="signature " id="gasto_energetico_total_-instance_method">
835
+
836
+ #<strong>gasto_energetico_total_</strong> &#x21d2; <tt>Object</tt>
837
+
838
+
839
+
840
+
841
+
842
+ </h3><div class="docstring">
843
+ <div class="discussion">
844
+
845
+ <p>Returns the value of attribute gasto_energetico_total_</p>
846
+
847
+
848
+ </div>
849
+ </div>
850
+ <div class="tags">
851
+
852
+
853
+ </div><table class="source_code">
854
+ <tr>
855
+ <td>
856
+ <pre class="lines">
857
+
858
+
859
+ 4
860
+ 5
861
+ 6</pre>
862
+ </td>
863
+ <td>
864
+ <pre class="code"><span class="info file"># File 'lib/gema/paciente_obeso.rb', line 4</span>
865
+
866
+ <span class='kw'>def</span> <span class='id identifier rubyid_gasto_energetico_total_'>gasto_energetico_total_</span>
867
+ <span class='ivar'>@gasto_energetico_total_</span>
868
+ <span class='kw'>end</span></pre>
869
+ </td>
870
+ </tr>
871
+ </table>
872
+ </div>
873
+
874
+
875
+ <span id="grasa=-instance_method"></span>
876
+ <div class="method_details ">
877
+ <h3 class="signature " id="grasa-instance_method">
878
+
879
+ #<strong>grasa</strong> &#x21d2; <tt>Object</tt>
880
+
881
+
882
+
883
+
884
+
885
+ </h3><div class="docstring">
886
+ <div class="discussion">
887
+
888
+ <p>Returns the value of attribute grasa</p>
889
+
890
+
891
+ </div>
892
+ </div>
893
+ <div class="tags">
894
+
895
+
896
+ </div><table class="source_code">
897
+ <tr>
898
+ <td>
899
+ <pre class="lines">
900
+
901
+
902
+ 4
903
+ 5
904
+ 6</pre>
905
+ </td>
906
+ <td>
907
+ <pre class="code"><span class="info file"># File 'lib/gema/paciente_obeso.rb', line 4</span>
908
+
909
+ <span class='kw'>def</span> <span class='id identifier rubyid_grasa'>grasa</span>
910
+ <span class='ivar'>@grasa</span>
911
+ <span class='kw'>end</span></pre>
912
+ </td>
913
+ </tr>
914
+ </table>
915
+ </div>
916
+
917
+
918
+ <span id="imc=-instance_method"></span>
919
+ <div class="method_details ">
920
+ <h3 class="signature " id="imc-instance_method">
921
+
922
+ #<strong>imc</strong> &#x21d2; <tt>Object</tt>
923
+
924
+
925
+
926
+
927
+
928
+ </h3><div class="docstring">
929
+ <div class="discussion">
930
+
931
+ <p>Returns the value of attribute imc</p>
932
+
933
+
934
+ </div>
935
+ </div>
936
+ <div class="tags">
937
+
938
+
939
+ </div><table class="source_code">
940
+ <tr>
941
+ <td>
942
+ <pre class="lines">
943
+
944
+
945
+ 4
946
+ 5
947
+ 6</pre>
948
+ </td>
949
+ <td>
950
+ <pre class="code"><span class="info file"># File 'lib/gema/paciente_obeso.rb', line 4</span>
951
+
952
+ <span class='kw'>def</span> <span class='id identifier rubyid_imc'>imc</span>
953
+ <span class='ivar'>@imc</span>
954
+ <span class='kw'>end</span></pre>
955
+ </td>
956
+ </tr>
957
+ </table>
958
+ </div>
959
+
960
+
961
+ <span id="peso_teorico_ideal_=-instance_method"></span>
962
+ <div class="method_details ">
963
+ <h3 class="signature " id="peso_teorico_ideal_-instance_method">
964
+
965
+ #<strong>peso_teorico_ideal_</strong> &#x21d2; <tt>Object</tt>
966
+
967
+
968
+
969
+
970
+
971
+ </h3><div class="docstring">
972
+ <div class="discussion">
973
+
974
+ <p>Returns the value of attribute peso_teorico_ideal_</p>
975
+
976
+
977
+ </div>
978
+ </div>
979
+ <div class="tags">
980
+
981
+
982
+ </div><table class="source_code">
983
+ <tr>
984
+ <td>
985
+ <pre class="lines">
986
+
987
+
988
+ 4
989
+ 5
990
+ 6</pre>
991
+ </td>
992
+ <td>
993
+ <pre class="code"><span class="info file"># File 'lib/gema/paciente_obeso.rb', line 4</span>
994
+
995
+ <span class='kw'>def</span> <span class='id identifier rubyid_peso_teorico_ideal_'>peso_teorico_ideal_</span>
996
+ <span class='ivar'>@peso_teorico_ideal_</span>
997
+ <span class='kw'>end</span></pre>
998
+ </td>
999
+ </tr>
1000
+ </table>
1001
+ </div>
1002
+
1003
+
1004
+ <span id="rcc=-instance_method"></span>
1005
+ <div class="method_details ">
1006
+ <h3 class="signature " id="rcc-instance_method">
1007
+
1008
+ #<strong>rcc</strong> &#x21d2; <tt>Object</tt>
1009
+
1010
+
1011
+
1012
+
1013
+
1014
+ </h3><div class="docstring">
1015
+ <div class="discussion">
1016
+
1017
+ <p>Returns the value of attribute rcc</p>
1018
+
1019
+
1020
+ </div>
1021
+ </div>
1022
+ <div class="tags">
1023
+
1024
+
1025
+ </div><table class="source_code">
1026
+ <tr>
1027
+ <td>
1028
+ <pre class="lines">
1029
+
1030
+
1031
+ 4
1032
+ 5
1033
+ 6</pre>
1034
+ </td>
1035
+ <td>
1036
+ <pre class="code"><span class="info file"># File 'lib/gema/paciente_obeso.rb', line 4</span>
1037
+
1038
+ <span class='kw'>def</span> <span class='id identifier rubyid_rcc'>rcc</span>
1039
+ <span class='ivar'>@rcc</span>
1040
+ <span class='kw'>end</span></pre>
1041
+ </td>
1042
+ </tr>
1043
+ </table>
1044
+ </div>
1045
+
1046
+ </div>
1047
+
1048
+
1049
+ <div id="instance_method_details" class="method_details_list">
1050
+ <h2>Instance Method Details</h2>
1051
+
1052
+
1053
+ <div class="method_details first">
1054
+ <h3 class="signature first" id="efecto_termogeno-instance_method">
1055
+
1056
+ #<strong>efecto_termogeno</strong> &#x21d2; <tt>Object</tt>
1057
+
1058
+
1059
+
1060
+
1061
+
1062
+ </h3><div class="docstring">
1063
+ <div class="discussion">
1064
+
1065
+ <p>Calcula el efecto termogeno de una persona</p>
1066
+
1067
+
1068
+ </div>
1069
+ </div>
1070
+ <div class="tags">
1071
+
1072
+
1073
+ </div><table class="source_code">
1074
+ <tr>
1075
+ <td>
1076
+ <pre class="lines">
1077
+
1078
+
1079
+ 43
1080
+ 44
1081
+ 45</pre>
1082
+ </td>
1083
+ <td>
1084
+ <pre class="code"><span class="info file"># File 'lib/gema/paciente_obeso.rb', line 43</span>
1085
+
1086
+ <span class='kw'>def</span> <span class='id identifier rubyid_efecto_termogeno'>efecto_termogeno</span>
1087
+ <span class='ivar'>@efecto_termogeno_</span> <span class='op'>=</span> <span class='ivar'>@gasto_energetico_basal_</span> <span class='op'>*</span> <span class='float'>0.10</span>
1088
+ <span class='kw'>end</span></pre>
1089
+ </td>
1090
+ </tr>
1091
+ </table>
1092
+ </div>
1093
+
1094
+ <div class="method_details ">
1095
+ <h3 class="signature " id="factor_actividad_fisica-instance_method">
1096
+
1097
+ #<strong>factor_actividad_fisica</strong>(nivel_actividad) &#x21d2; <tt>Object</tt>
1098
+
1099
+
1100
+
1101
+
1102
+
1103
+ </h3><div class="docstring">
1104
+ <div class="discussion">
1105
+
1106
+ <p>Calcula el factor de actividad fisica de una persona</p>
1107
+
1108
+
1109
+ </div>
1110
+ </div>
1111
+ <div class="tags">
1112
+
1113
+
1114
+ </div><table class="source_code">
1115
+ <tr>
1116
+ <td>
1117
+ <pre class="lines">
1118
+
1119
+
1120
+ 48
1121
+ 49
1122
+ 50
1123
+ 51
1124
+ 52
1125
+ 53
1126
+ 54
1127
+ 55
1128
+ 56
1129
+ 57
1130
+ 58
1131
+ 59
1132
+ 60
1133
+ 61
1134
+ 62</pre>
1135
+ </td>
1136
+ <td>
1137
+ <pre class="code"><span class="info file"># File 'lib/gema/paciente_obeso.rb', line 48</span>
1138
+
1139
+ <span class='kw'>def</span> <span class='id identifier rubyid_factor_actividad_fisica'>factor_actividad_fisica</span><span class='lparen'>(</span><span class='id identifier rubyid_nivel_actividad'>nivel_actividad</span><span class='rparen'>)</span>
1140
+
1141
+ <span class='kw'>case</span> <span class='id identifier rubyid_nivel_actividad'>nivel_actividad</span>
1142
+ <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Reposo</span><span class='tstring_end'>&quot;</span></span>
1143
+ <span class='ivar'>@factor_de_actividad_fisica_</span> <span class='op'>=</span> <span class='float'>0.0</span>
1144
+ <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Actividad ligera</span><span class='tstring_end'>&quot;</span></span>
1145
+ <span class='ivar'>@factor_de_actividad_fisica_</span> <span class='op'>=</span> <span class='float'>0.12</span>
1146
+ <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Actividad moderada</span><span class='tstring_end'>&quot;</span></span>
1147
+ <span class='ivar'>@factor_de_actividad_fisica_</span> <span class='op'>=</span> <span class='float'>0.27</span>
1148
+ <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Actividad intensa</span><span class='tstring_end'>&quot;</span></span>
1149
+ <span class='ivar'>@factor_de_actividad_fisica_</span> <span class='op'>=</span> <span class='float'>0.54</span>
1150
+ <span class='kw'>else</span>
1151
+ <span class='ivar'>@factor_de_actividad_fisica_</span> <span class='op'>=</span> <span class='int'>0</span>
1152
+ <span class='kw'>end</span>
1153
+ <span class='kw'>end</span></pre>
1154
+ </td>
1155
+ </tr>
1156
+ </table>
1157
+ </div>
1158
+
1159
+ <div class="method_details ">
1160
+ <h3 class="signature " id="gasto_actividad_fisica-instance_method">
1161
+
1162
+ #<strong>gasto_actividad_fisica</strong> &#x21d2; <tt>Object</tt>
1163
+
1164
+
1165
+
1166
+
1167
+
1168
+ </h3><div class="docstring">
1169
+ <div class="discussion">
1170
+
1171
+ <p>calcula el gasto de la actividad fisica de una perosna</p>
1172
+
1173
+
1174
+ </div>
1175
+ </div>
1176
+ <div class="tags">
1177
+
1178
+
1179
+ </div><table class="source_code">
1180
+ <tr>
1181
+ <td>
1182
+ <pre class="lines">
1183
+
1184
+
1185
+ 66
1186
+ 67
1187
+ 68</pre>
1188
+ </td>
1189
+ <td>
1190
+ <pre class="code"><span class="info file"># File 'lib/gema/paciente_obeso.rb', line 66</span>
1191
+
1192
+ <span class='kw'>def</span> <span class='id identifier rubyid_gasto_actividad_fisica'>gasto_actividad_fisica</span>
1193
+ <span class='ivar'>@gasto_actividad_fisica_</span> <span class='op'>=</span> <span class='ivar'>@gasto_energetico_basal_</span> <span class='op'>*</span> <span class='ivar'>@factor_de_actividad_fisica_</span>
1194
+ <span class='kw'>end</span></pre>
1195
+ </td>
1196
+ </tr>
1197
+ </table>
1198
+ </div>
1199
+
1200
+ <div class="method_details ">
1201
+ <h3 class="signature " id="gasto_energetico_basal-instance_method">
1202
+
1203
+ #<strong>gasto_energetico_basal</strong> &#x21d2; <tt>Object</tt>
1204
+
1205
+
1206
+
1207
+
1208
+
1209
+ </h3><div class="docstring">
1210
+ <div class="discussion">
1211
+
1212
+ <p>Gasto energético basal</p>
1213
+
1214
+
1215
+ </div>
1216
+ </div>
1217
+ <div class="tags">
1218
+
1219
+
1220
+ </div><table class="source_code">
1221
+ <tr>
1222
+ <td>
1223
+ <pre class="lines">
1224
+
1225
+
1226
+ 32
1227
+ 33
1228
+ 34
1229
+ 35
1230
+ 36
1231
+ 37
1232
+ 38
1233
+ 39</pre>
1234
+ </td>
1235
+ <td>
1236
+ <pre class="code"><span class="info file"># File 'lib/gema/paciente_obeso.rb', line 32</span>
1237
+
1238
+ <span class='kw'>def</span> <span class='id identifier rubyid_gasto_energetico_basal'>gasto_energetico_basal</span>
1239
+
1240
+ <span class='kw'>if</span><span class='lparen'>(</span><span class='ivar'>@sexo</span> <span class='op'>==</span> <span class='int'>0</span><span class='rparen'>)</span>
1241
+ <span class='ivar'>@gasto_energetico_basal_</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='int'>10</span><span class='op'>*</span><span class='ivar'>@peso</span><span class='rparen'>)</span> <span class='op'>+</span> <span class='lparen'>(</span> <span class='float'>6.25</span><span class='op'>*</span><span class='ivar'>@talla</span><span class='rparen'>)</span> <span class='op'>-</span> <span class='lparen'>(</span><span class='int'>5</span><span class='op'>*</span><span class='ivar'>@edad</span><span class='rparen'>)</span><span class='op'>-</span><span class='int'>161</span>
1242
+ <span class='kw'>else</span>
1243
+ <span class='ivar'>@gasto_energetico_basal_</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='int'>10</span><span class='op'>*</span><span class='ivar'>@peso</span><span class='rparen'>)</span> <span class='op'>+</span> <span class='lparen'>(</span> <span class='float'>6.25</span><span class='op'>*</span><span class='ivar'>@talla</span><span class='rparen'>)</span> <span class='op'>-</span> <span class='lparen'>(</span><span class='int'>5</span><span class='op'>*</span><span class='ivar'>@edad</span><span class='rparen'>)</span><span class='op'>+</span><span class='int'>5</span>
1244
+ <span class='kw'>end</span>
1245
+ <span class='kw'>end</span></pre>
1246
+ </td>
1247
+ </tr>
1248
+ </table>
1249
+ </div>
1250
+
1251
+ <div class="method_details ">
1252
+ <h3 class="signature " id="gasto_energetico_total-instance_method">
1253
+
1254
+ #<strong>gasto_energetico_total</strong> &#x21d2; <tt>Object</tt>
1255
+
1256
+
1257
+
1258
+
1259
+
1260
+ </h3><div class="docstring">
1261
+ <div class="discussion">
1262
+
1263
+ <p>Calcula el gasto energetico total de una persona</p>
1264
+
1265
+
1266
+ </div>
1267
+ </div>
1268
+ <div class="tags">
1269
+
1270
+
1271
+ </div><table class="source_code">
1272
+ <tr>
1273
+ <td>
1274
+ <pre class="lines">
1275
+
1276
+
1277
+ 72
1278
+ 73
1279
+ 74</pre>
1280
+ </td>
1281
+ <td>
1282
+ <pre class="code"><span class="info file"># File 'lib/gema/paciente_obeso.rb', line 72</span>
1283
+
1284
+ <span class='kw'>def</span> <span class='id identifier rubyid_gasto_energetico_total'>gasto_energetico_total</span>
1285
+ <span class='ivar'>@gasto_energetico_total_</span> <span class='op'>=</span> <span class='ivar'>@gasto_energetico_basal_</span> <span class='op'>+</span> <span class='ivar'>@efecto_termogeno_</span> <span class='op'>+</span> <span class='ivar'>@gasto_actividad_fisica_</span>
1286
+ <span class='kw'>end</span></pre>
1287
+ </td>
1288
+ </tr>
1289
+ </table>
1290
+ </div>
1291
+
1292
+ <div class="method_details ">
1293
+ <h3 class="signature " id="peso_teorico_ideal-instance_method">
1294
+
1295
+ #<strong>peso_teorico_ideal</strong> &#x21d2; <tt>Object</tt>
1296
+
1297
+
1298
+
1299
+
1300
+
1301
+ </h3><div class="docstring">
1302
+ <div class="discussion">
1303
+
1304
+ <p>Peso teórico ideal</p>
1305
+
1306
+
1307
+ </div>
1308
+ </div>
1309
+ <div class="tags">
1310
+
1311
+
1312
+ </div><table class="source_code">
1313
+ <tr>
1314
+ <td>
1315
+ <pre class="lines">
1316
+
1317
+
1318
+ 27
1319
+ 28
1320
+ 29</pre>
1321
+ </td>
1322
+ <td>
1323
+ <pre class="code"><span class="info file"># File 'lib/gema/paciente_obeso.rb', line 27</span>
1324
+
1325
+ <span class='kw'>def</span> <span class='id identifier rubyid_peso_teorico_ideal'>peso_teorico_ideal</span>
1326
+ <span class='ivar'>@peso_teorico_ideal_</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='lparen'>(</span><span class='ivar'>@talla</span> <span class='op'>-</span> <span class='float'>1.50</span><span class='rparen'>)</span> <span class='op'>*</span> <span class='float'>0.75</span> <span class='op'>+</span> <span class='int'>50</span><span class='rparen'>)</span>
1327
+ <span class='kw'>end</span></pre>
1328
+ </td>
1329
+ </tr>
1330
+ </table>
1331
+ </div>
1332
+
1333
+ <div class="method_details ">
1334
+ <h3 class="signature " id="to_s-instance_method">
1335
+
1336
+ #<strong>to_s</strong> &#x21d2; <tt>Object</tt>
1337
+
1338
+
1339
+
1340
+
1341
+
1342
+ </h3><div class="docstring">
1343
+ <div class="discussion">
1344
+
1345
+ <p>Convierte el Paciente_obeso en una cadena</p>
1346
+
1347
+
1348
+ </div>
1349
+ </div>
1350
+ <div class="tags">
1351
+
1352
+
1353
+ </div><table class="source_code">
1354
+ <tr>
1355
+ <td>
1356
+ <pre class="lines">
1357
+
1358
+
1359
+ 21
1360
+ 22
1361
+ 23</pre>
1362
+ </td>
1363
+ <td>
1364
+ <pre class="code"><span class="info file"># File 'lib/gema/paciente_obeso.rb', line 21</span>
1365
+
1366
+ <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
1367
+ <span class='ivar'>@valoracion</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
1368
+ <span class='kw'>end</span></pre>
1369
+ </td>
1370
+ </tr>
1371
+ </table>
1372
+ </div>
1373
+
1374
+ </div>
1375
+
1376
+ </div>
1377
+
1378
+ <div id="footer">
1379
+ Generated on Wed Dec 19 11:49:28 2018 by
1380
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1381
+ 0.9.16 (ruby-2.5.1).
1382
+ </div>
1383
+
1384
+ </div>
1385
+ </body>
1386
+ </html>