gematdd-dibad 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.coveralls.yml +1 -0
- data/.gitignore +14 -0
- data/.rspec +3 -0
- data/.travis.yml +7 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +115 -0
- data/Guardfile +82 -0
- data/README.md +41 -0
- data/Rakefile +11 -0
- data/bin/bundle +105 -0
- data/bin/console +14 -0
- data/bin/htmldiff +29 -0
- data/bin/ldiff +29 -0
- data/bin/rspec +29 -0
- data/bin/setup +8 -0
- data/doc/DatosAntropometricos.html +782 -0
- data/doc/Etiqueta.html +1339 -0
- data/doc/Factor.html +262 -0
- data/doc/FactorActFisica.html +136 -0
- data/doc/FichaValoracionNutricional.html +857 -0
- data/doc/Gematdd.html +133 -0
- data/doc/Gematdd/Error.html +124 -0
- data/doc/Grasas.html +578 -0
- data/doc/Hidratos.html +576 -0
- data/doc/Individuo.html +845 -0
- data/doc/Lista.html +1281 -0
- data/doc/Node.html +409 -0
- data/doc/Paciente.html +379 -0
- data/doc/PacienteConDatos.html +988 -0
- data/doc/PacienteConObesidad.html +342 -0
- data/doc/PacienteSinObesidad.html +342 -0
- data/doc/_index.html +251 -0
- data/doc/class_list.html +51 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +58 -0
- data/doc/css/style.css +496 -0
- data/doc/file.README.html +118 -0
- data/doc/file_list.html +56 -0
- data/doc/frames.html +17 -0
- data/doc/index.html +118 -0
- data/doc/js/app.js +292 -0
- data/doc/js/full_list.js +216 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +787 -0
- data/doc/top-level-namespace.html +112 -0
- data/examples/ejemplo.rb +32 -0
- data/gematdd.gemspec +35 -0
- data/lib/gematdd.rb +6 -0
- data/lib/gematdd/etiqueta/etiqueta.rb +100 -0
- data/lib/gematdd/etiqueta/factor.rb +32 -0
- data/lib/gematdd/etiqueta/grasas.rb +24 -0
- data/lib/gematdd/etiqueta/hidratos.rb +23 -0
- data/lib/gematdd/lista/lista.rb +170 -0
- data/lib/gematdd/menu/menu.rb +89 -0
- data/lib/gematdd/menu/menu.rb~ +95 -0
- data/lib/gematdd/paciente/individuo.rb +37 -0
- data/lib/gematdd/paciente/paciente.rb +16 -0
- data/lib/gematdd/paciente/paciente_con_obesidad.rb +21 -0
- data/lib/gematdd/paciente/paciente_datos.rb +69 -0
- data/lib/gematdd/paciente/paciente_sin_obesidad.rb +22 -0
- data/lib/gematdd/valoracion/datos_antropometricos.rb +37 -0
- data/lib/gematdd/valoracion/ficha_valoracion.rb +70 -0
- data/lib/gematdd/version.rb +3 -0
- metadata +235 -0
data/doc/Individuo.html
ADDED
@@ -0,0 +1,845 @@
|
|
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: Individuo
|
8
|
+
|
9
|
+
— 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 = "Individuo";
|
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 (I)</a> »
|
40
|
+
|
41
|
+
|
42
|
+
<span class="title">Individuo</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: Individuo
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
<dl>
|
70
|
+
<dt>Inherits:</dt>
|
71
|
+
<dd>
|
72
|
+
<span class="inheritName">Object</span>
|
73
|
+
|
74
|
+
<ul class="fullTree">
|
75
|
+
<li>Object</li>
|
76
|
+
|
77
|
+
<li class="next">Individuo</li>
|
78
|
+
|
79
|
+
</ul>
|
80
|
+
<a href="#" class="inheritanceTree">show all</a>
|
81
|
+
|
82
|
+
</dd>
|
83
|
+
</dl>
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
<dl>
|
91
|
+
<dt>Includes:</dt>
|
92
|
+
<dd>Comparable</dd>
|
93
|
+
</dl>
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
<dl>
|
101
|
+
<dt>Defined in:</dt>
|
102
|
+
<dd>lib/gematdd/paciente/individuo.rb</dd>
|
103
|
+
</dl>
|
104
|
+
|
105
|
+
</div>
|
106
|
+
|
107
|
+
<h2>Overview</h2><div class="docstring">
|
108
|
+
<div class="discussion">
|
109
|
+
|
110
|
+
<p>Clase que representa a un Individuo (Sin ser o no paciente)</p>
|
111
|
+
|
112
|
+
|
113
|
+
</div>
|
114
|
+
</div>
|
115
|
+
<div class="tags">
|
116
|
+
|
117
|
+
|
118
|
+
</div><div id="subclasses">
|
119
|
+
<h2>Direct Known Subclasses</h2>
|
120
|
+
<p class="children"><span class='object_link'><a href="Paciente.html" title="Paciente (class)">Paciente</a></span></p>
|
121
|
+
</div>
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
127
|
+
<ul class="summary">
|
128
|
+
|
129
|
+
<li class="public ">
|
130
|
+
<span class="summary_signature">
|
131
|
+
|
132
|
+
<a href="#apellidos-instance_method" title="#apellidos (instance method)">#<strong>apellidos</strong> ⇒ Object </a>
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
</span>
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
<span class="summary_desc"><div class='inline'>
|
150
|
+
<p>Returns the value of attribute apellidos.</p>
|
151
|
+
</div></span>
|
152
|
+
|
153
|
+
</li>
|
154
|
+
|
155
|
+
|
156
|
+
<li class="public ">
|
157
|
+
<span class="summary_signature">
|
158
|
+
|
159
|
+
<a href="#edad-instance_method" title="#edad (instance method)">#<strong>edad</strong> ⇒ Object </a>
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
</span>
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
<span class="summary_desc"><div class='inline'>
|
177
|
+
<p>Calcula la edad a partir de la fecha de nacimiento.</p>
|
178
|
+
</div></span>
|
179
|
+
|
180
|
+
</li>
|
181
|
+
|
182
|
+
|
183
|
+
<li class="public ">
|
184
|
+
<span class="summary_signature">
|
185
|
+
|
186
|
+
<a href="#fecha_nac-instance_method" title="#fecha_nac (instance method)">#<strong>fecha_nac</strong> ⇒ Object </a>
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
</span>
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
<span class="summary_desc"><div class='inline'>
|
204
|
+
<p>Returns the value of attribute fecha_nac.</p>
|
205
|
+
</div></span>
|
206
|
+
|
207
|
+
</li>
|
208
|
+
|
209
|
+
|
210
|
+
<li class="public ">
|
211
|
+
<span class="summary_signature">
|
212
|
+
|
213
|
+
<a href="#nombre-instance_method" title="#nombre (instance method)">#<strong>nombre</strong> ⇒ Object </a>
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
</span>
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
<span class="summary_desc"><div class='inline'>
|
231
|
+
<p>Returns the value of attribute nombre.</p>
|
232
|
+
</div></span>
|
233
|
+
|
234
|
+
</li>
|
235
|
+
|
236
|
+
|
237
|
+
<li class="public ">
|
238
|
+
<span class="summary_signature">
|
239
|
+
|
240
|
+
<a href="#ocupacion-instance_method" title="#ocupacion (instance method)">#<strong>ocupacion</strong> ⇒ Object </a>
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
</span>
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
<span class="summary_desc"><div class='inline'>
|
258
|
+
<p>Returns the value of attribute ocupacion.</p>
|
259
|
+
</div></span>
|
260
|
+
|
261
|
+
</li>
|
262
|
+
|
263
|
+
|
264
|
+
<li class="public ">
|
265
|
+
<span class="summary_signature">
|
266
|
+
|
267
|
+
<a href="#sexo-instance_method" title="#sexo (instance method)">#<strong>sexo</strong> ⇒ Object </a>
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
</span>
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
|
284
|
+
<span class="summary_desc"><div class='inline'>
|
285
|
+
<p>Returns the value of attribute sexo.</p>
|
286
|
+
</div></span>
|
287
|
+
|
288
|
+
</li>
|
289
|
+
|
290
|
+
|
291
|
+
</ul>
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
<h2>
|
298
|
+
Instance Method Summary
|
299
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
300
|
+
</h2>
|
301
|
+
|
302
|
+
<ul class="summary">
|
303
|
+
|
304
|
+
<li class="public ">
|
305
|
+
<span class="summary_signature">
|
306
|
+
|
307
|
+
<a href="#<=>-instance_method" title="#<=> (instance method)">#<strong><=></strong>(other) ⇒ Object </a>
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
</span>
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
322
|
+
|
323
|
+
</li>
|
324
|
+
|
325
|
+
|
326
|
+
<li class="public ">
|
327
|
+
<span class="summary_signature">
|
328
|
+
|
329
|
+
<a href="#genero-instance_method" title="#genero (instance method)">#<strong>genero</strong> ⇒ Object </a>
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
</span>
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
<span class="summary_desc"><div class='inline'>
|
344
|
+
<p>Convierte el atributo de sexo (0 o 1) a un valor legible.</p>
|
345
|
+
</div></span>
|
346
|
+
|
347
|
+
</li>
|
348
|
+
|
349
|
+
|
350
|
+
<li class="public ">
|
351
|
+
<span class="summary_signature">
|
352
|
+
|
353
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(nombre, apellidos, sexo, fecha_nac, ocupacion) ⇒ Individuo </a>
|
354
|
+
|
355
|
+
|
356
|
+
|
357
|
+
</span>
|
358
|
+
|
359
|
+
|
360
|
+
<span class="note title constructor">constructor</span>
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
<span class="summary_desc"><div class='inline'>
|
370
|
+
<p>A new instance of Individuo.</p>
|
371
|
+
</div></span>
|
372
|
+
|
373
|
+
</li>
|
374
|
+
|
375
|
+
|
376
|
+
<li class="public ">
|
377
|
+
<span class="summary_signature">
|
378
|
+
|
379
|
+
<a href="#to_s-instance_method" title="#to_s (instance method)">#<strong>to_s</strong> ⇒ Object </a>
|
380
|
+
|
381
|
+
|
382
|
+
|
383
|
+
</span>
|
384
|
+
|
385
|
+
|
386
|
+
|
387
|
+
|
388
|
+
|
389
|
+
|
390
|
+
|
391
|
+
|
392
|
+
|
393
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
394
|
+
|
395
|
+
</li>
|
396
|
+
|
397
|
+
|
398
|
+
</ul>
|
399
|
+
|
400
|
+
|
401
|
+
|
402
|
+
<div id="constructor_details" class="method_details_list">
|
403
|
+
<h2>Constructor Details</h2>
|
404
|
+
|
405
|
+
<div class="method_details first">
|
406
|
+
<h3 class="signature first" id="initialize-instance_method">
|
407
|
+
|
408
|
+
#<strong>initialize</strong>(nombre, apellidos, sexo, fecha_nac, ocupacion) ⇒ <tt><span class='object_link'><a href="" title="Individuo (class)">Individuo</a></span></tt>
|
409
|
+
|
410
|
+
|
411
|
+
|
412
|
+
|
413
|
+
|
414
|
+
</h3><div class="docstring">
|
415
|
+
<div class="discussion">
|
416
|
+
|
417
|
+
<p>Returns a new instance of Individuo</p>
|
418
|
+
|
419
|
+
|
420
|
+
</div>
|
421
|
+
</div>
|
422
|
+
<div class="tags">
|
423
|
+
|
424
|
+
|
425
|
+
</div><table class="source_code">
|
426
|
+
<tr>
|
427
|
+
<td>
|
428
|
+
<pre class="lines">
|
429
|
+
|
430
|
+
|
431
|
+
9
|
432
|
+
10
|
433
|
+
11
|
434
|
+
12
|
435
|
+
13
|
436
|
+
14
|
437
|
+
15
|
438
|
+
16</pre>
|
439
|
+
</td>
|
440
|
+
<td>
|
441
|
+
<pre class="code"><span class="info file"># File 'lib/gematdd/paciente/individuo.rb', line 9</span>
|
442
|
+
|
443
|
+
<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_apellidos'>apellidos</span><span class='comma'>,</span> <span class='id identifier rubyid_sexo'>sexo</span><span class='comma'>,</span> <span class='id identifier rubyid_fecha_nac'>fecha_nac</span><span class='comma'>,</span> <span class='id identifier rubyid_ocupacion'>ocupacion</span><span class='rparen'>)</span>
|
444
|
+
<span class='ivar'>@nombre</span> <span class='op'>=</span> <span class='id identifier rubyid_nombre'>nombre</span>
|
445
|
+
<span class='ivar'>@apellidos</span> <span class='op'>=</span> <span class='id identifier rubyid_apellidos'>apellidos</span>
|
446
|
+
<span class='ivar'>@sexo</span> <span class='op'>=</span> <span class='id identifier rubyid_sexo'>sexo</span>
|
447
|
+
<span class='ivar'>@fecha_nac</span> <span class='op'>=</span> <span class='const'>Date</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_fecha_nac'>fecha_nac</span><span class='rparen'>)</span>
|
448
|
+
<span class='ivar'>@edad</span> <span class='op'>=</span> <span class='id identifier rubyid_edad'>edad</span>
|
449
|
+
<span class='ivar'>@ocupacion</span> <span class='op'>=</span> <span class='id identifier rubyid_ocupacion'>ocupacion</span>
|
450
|
+
<span class='kw'>end</span></pre>
|
451
|
+
</td>
|
452
|
+
</tr>
|
453
|
+
</table>
|
454
|
+
</div>
|
455
|
+
|
456
|
+
</div>
|
457
|
+
|
458
|
+
<div id="instance_attr_details" class="attr_details">
|
459
|
+
<h2>Instance Attribute Details</h2>
|
460
|
+
|
461
|
+
|
462
|
+
<span id="apellidos=-instance_method"></span>
|
463
|
+
<div class="method_details first">
|
464
|
+
<h3 class="signature first" id="apellidos-instance_method">
|
465
|
+
|
466
|
+
#<strong>apellidos</strong> ⇒ <tt>Object</tt>
|
467
|
+
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
|
472
|
+
</h3><div class="docstring">
|
473
|
+
<div class="discussion">
|
474
|
+
|
475
|
+
<p>Returns the value of attribute apellidos</p>
|
476
|
+
|
477
|
+
|
478
|
+
</div>
|
479
|
+
</div>
|
480
|
+
<div class="tags">
|
481
|
+
|
482
|
+
|
483
|
+
</div><table class="source_code">
|
484
|
+
<tr>
|
485
|
+
<td>
|
486
|
+
<pre class="lines">
|
487
|
+
|
488
|
+
|
489
|
+
7
|
490
|
+
8
|
491
|
+
9</pre>
|
492
|
+
</td>
|
493
|
+
<td>
|
494
|
+
<pre class="code"><span class="info file"># File 'lib/gematdd/paciente/individuo.rb', line 7</span>
|
495
|
+
|
496
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_apellidos'>apellidos</span>
|
497
|
+
<span class='ivar'>@apellidos</span>
|
498
|
+
<span class='kw'>end</span></pre>
|
499
|
+
</td>
|
500
|
+
</tr>
|
501
|
+
</table>
|
502
|
+
</div>
|
503
|
+
|
504
|
+
|
505
|
+
<span id="edad=-instance_method"></span>
|
506
|
+
<div class="method_details ">
|
507
|
+
<h3 class="signature " id="edad-instance_method">
|
508
|
+
|
509
|
+
#<strong>edad</strong> ⇒ <tt>Object</tt>
|
510
|
+
|
511
|
+
|
512
|
+
|
513
|
+
|
514
|
+
|
515
|
+
</h3><div class="docstring">
|
516
|
+
<div class="discussion">
|
517
|
+
|
518
|
+
<p>Calcula la edad a partir de la fecha de nacimiento</p>
|
519
|
+
|
520
|
+
|
521
|
+
</div>
|
522
|
+
</div>
|
523
|
+
<div class="tags">
|
524
|
+
|
525
|
+
|
526
|
+
</div><table class="source_code">
|
527
|
+
<tr>
|
528
|
+
<td>
|
529
|
+
<pre class="lines">
|
530
|
+
|
531
|
+
|
532
|
+
24
|
533
|
+
25
|
534
|
+
26</pre>
|
535
|
+
</td>
|
536
|
+
<td>
|
537
|
+
<pre class="code"><span class="info file"># File 'lib/gematdd/paciente/individuo.rb', line 24</span>
|
538
|
+
|
539
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_edad'>edad</span>
|
540
|
+
<span class='ivar'>@edad</span>
|
541
|
+
<span class='kw'>end</span></pre>
|
542
|
+
</td>
|
543
|
+
</tr>
|
544
|
+
</table>
|
545
|
+
</div>
|
546
|
+
|
547
|
+
|
548
|
+
<span id="fecha_nac=-instance_method"></span>
|
549
|
+
<div class="method_details ">
|
550
|
+
<h3 class="signature " id="fecha_nac-instance_method">
|
551
|
+
|
552
|
+
#<strong>fecha_nac</strong> ⇒ <tt>Object</tt>
|
553
|
+
|
554
|
+
|
555
|
+
|
556
|
+
|
557
|
+
|
558
|
+
</h3><div class="docstring">
|
559
|
+
<div class="discussion">
|
560
|
+
|
561
|
+
<p>Returns the value of attribute fecha_nac</p>
|
562
|
+
|
563
|
+
|
564
|
+
</div>
|
565
|
+
</div>
|
566
|
+
<div class="tags">
|
567
|
+
|
568
|
+
|
569
|
+
</div><table class="source_code">
|
570
|
+
<tr>
|
571
|
+
<td>
|
572
|
+
<pre class="lines">
|
573
|
+
|
574
|
+
|
575
|
+
7
|
576
|
+
8
|
577
|
+
9</pre>
|
578
|
+
</td>
|
579
|
+
<td>
|
580
|
+
<pre class="code"><span class="info file"># File 'lib/gematdd/paciente/individuo.rb', line 7</span>
|
581
|
+
|
582
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_fecha_nac'>fecha_nac</span>
|
583
|
+
<span class='ivar'>@fecha_nac</span>
|
584
|
+
<span class='kw'>end</span></pre>
|
585
|
+
</td>
|
586
|
+
</tr>
|
587
|
+
</table>
|
588
|
+
</div>
|
589
|
+
|
590
|
+
|
591
|
+
<span id="nombre=-instance_method"></span>
|
592
|
+
<div class="method_details ">
|
593
|
+
<h3 class="signature " id="nombre-instance_method">
|
594
|
+
|
595
|
+
#<strong>nombre</strong> ⇒ <tt>Object</tt>
|
596
|
+
|
597
|
+
|
598
|
+
|
599
|
+
|
600
|
+
|
601
|
+
</h3><div class="docstring">
|
602
|
+
<div class="discussion">
|
603
|
+
|
604
|
+
<p>Returns the value of attribute nombre</p>
|
605
|
+
|
606
|
+
|
607
|
+
</div>
|
608
|
+
</div>
|
609
|
+
<div class="tags">
|
610
|
+
|
611
|
+
|
612
|
+
</div><table class="source_code">
|
613
|
+
<tr>
|
614
|
+
<td>
|
615
|
+
<pre class="lines">
|
616
|
+
|
617
|
+
|
618
|
+
7
|
619
|
+
8
|
620
|
+
9</pre>
|
621
|
+
</td>
|
622
|
+
<td>
|
623
|
+
<pre class="code"><span class="info file"># File 'lib/gematdd/paciente/individuo.rb', line 7</span>
|
624
|
+
|
625
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_nombre'>nombre</span>
|
626
|
+
<span class='ivar'>@nombre</span>
|
627
|
+
<span class='kw'>end</span></pre>
|
628
|
+
</td>
|
629
|
+
</tr>
|
630
|
+
</table>
|
631
|
+
</div>
|
632
|
+
|
633
|
+
|
634
|
+
<span id="ocupacion=-instance_method"></span>
|
635
|
+
<div class="method_details ">
|
636
|
+
<h3 class="signature " id="ocupacion-instance_method">
|
637
|
+
|
638
|
+
#<strong>ocupacion</strong> ⇒ <tt>Object</tt>
|
639
|
+
|
640
|
+
|
641
|
+
|
642
|
+
|
643
|
+
|
644
|
+
</h3><div class="docstring">
|
645
|
+
<div class="discussion">
|
646
|
+
|
647
|
+
<p>Returns the value of attribute ocupacion</p>
|
648
|
+
|
649
|
+
|
650
|
+
</div>
|
651
|
+
</div>
|
652
|
+
<div class="tags">
|
653
|
+
|
654
|
+
|
655
|
+
</div><table class="source_code">
|
656
|
+
<tr>
|
657
|
+
<td>
|
658
|
+
<pre class="lines">
|
659
|
+
|
660
|
+
|
661
|
+
7
|
662
|
+
8
|
663
|
+
9</pre>
|
664
|
+
</td>
|
665
|
+
<td>
|
666
|
+
<pre class="code"><span class="info file"># File 'lib/gematdd/paciente/individuo.rb', line 7</span>
|
667
|
+
|
668
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_ocupacion'>ocupacion</span>
|
669
|
+
<span class='ivar'>@ocupacion</span>
|
670
|
+
<span class='kw'>end</span></pre>
|
671
|
+
</td>
|
672
|
+
</tr>
|
673
|
+
</table>
|
674
|
+
</div>
|
675
|
+
|
676
|
+
|
677
|
+
<span id="sexo=-instance_method"></span>
|
678
|
+
<div class="method_details ">
|
679
|
+
<h3 class="signature " id="sexo-instance_method">
|
680
|
+
|
681
|
+
#<strong>sexo</strong> ⇒ <tt>Object</tt>
|
682
|
+
|
683
|
+
|
684
|
+
|
685
|
+
|
686
|
+
|
687
|
+
</h3><div class="docstring">
|
688
|
+
<div class="discussion">
|
689
|
+
|
690
|
+
<p>Returns the value of attribute sexo</p>
|
691
|
+
|
692
|
+
|
693
|
+
</div>
|
694
|
+
</div>
|
695
|
+
<div class="tags">
|
696
|
+
|
697
|
+
|
698
|
+
</div><table class="source_code">
|
699
|
+
<tr>
|
700
|
+
<td>
|
701
|
+
<pre class="lines">
|
702
|
+
|
703
|
+
|
704
|
+
7
|
705
|
+
8
|
706
|
+
9</pre>
|
707
|
+
</td>
|
708
|
+
<td>
|
709
|
+
<pre class="code"><span class="info file"># File 'lib/gematdd/paciente/individuo.rb', line 7</span>
|
710
|
+
|
711
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_sexo'>sexo</span>
|
712
|
+
<span class='ivar'>@sexo</span>
|
713
|
+
<span class='kw'>end</span></pre>
|
714
|
+
</td>
|
715
|
+
</tr>
|
716
|
+
</table>
|
717
|
+
</div>
|
718
|
+
|
719
|
+
</div>
|
720
|
+
|
721
|
+
|
722
|
+
<div id="instance_method_details" class="method_details_list">
|
723
|
+
<h2>Instance Method Details</h2>
|
724
|
+
|
725
|
+
|
726
|
+
<div class="method_details first">
|
727
|
+
<h3 class="signature first" id="<=>-instance_method">
|
728
|
+
|
729
|
+
#<strong><=></strong>(other) ⇒ <tt>Object</tt>
|
730
|
+
|
731
|
+
|
732
|
+
|
733
|
+
|
734
|
+
|
735
|
+
</h3><table class="source_code">
|
736
|
+
<tr>
|
737
|
+
<td>
|
738
|
+
<pre class="lines">
|
739
|
+
|
740
|
+
|
741
|
+
31
|
742
|
+
32
|
743
|
+
33</pre>
|
744
|
+
</td>
|
745
|
+
<td>
|
746
|
+
<pre class="code"><span class="info file"># File 'lib/gematdd/paciente/individuo.rb', line 31</span>
|
747
|
+
|
748
|
+
<span class='kw'>def</span> <span class='op'><=></span><span class='lparen'>(</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</span>
|
749
|
+
<span class='id identifier rubyid_sexo'>sexo</span> <span class='op'><=></span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_sexo'>sexo</span>
|
750
|
+
<span class='kw'>end</span></pre>
|
751
|
+
</td>
|
752
|
+
</tr>
|
753
|
+
</table>
|
754
|
+
</div>
|
755
|
+
|
756
|
+
<div class="method_details ">
|
757
|
+
<h3 class="signature " id="genero-instance_method">
|
758
|
+
|
759
|
+
#<strong>genero</strong> ⇒ <tt>Object</tt>
|
760
|
+
|
761
|
+
|
762
|
+
|
763
|
+
|
764
|
+
|
765
|
+
</h3><div class="docstring">
|
766
|
+
<div class="discussion">
|
767
|
+
|
768
|
+
<p>Convierte el atributo de sexo (0 o 1) a un valor legible</p>
|
769
|
+
|
770
|
+
|
771
|
+
</div>
|
772
|
+
</div>
|
773
|
+
<div class="tags">
|
774
|
+
|
775
|
+
|
776
|
+
</div><table class="source_code">
|
777
|
+
<tr>
|
778
|
+
<td>
|
779
|
+
<pre class="lines">
|
780
|
+
|
781
|
+
|
782
|
+
19
|
783
|
+
20
|
784
|
+
21</pre>
|
785
|
+
</td>
|
786
|
+
<td>
|
787
|
+
<pre class="code"><span class="info file"># File 'lib/gematdd/paciente/individuo.rb', line 19</span>
|
788
|
+
|
789
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_genero'>genero</span>
|
790
|
+
<span class='ivar'>@sexo</span> <span class='op'>==</span> <span class='int'>1</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Hombre</span><span class='tstring_end'>'</span></span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Mujer</span><span class='tstring_end'>'</span></span>
|
791
|
+
<span class='kw'>end</span></pre>
|
792
|
+
</td>
|
793
|
+
</tr>
|
794
|
+
</table>
|
795
|
+
</div>
|
796
|
+
|
797
|
+
<div class="method_details ">
|
798
|
+
<h3 class="signature " id="to_s-instance_method">
|
799
|
+
|
800
|
+
#<strong>to_s</strong> ⇒ <tt>Object</tt>
|
801
|
+
|
802
|
+
|
803
|
+
|
804
|
+
|
805
|
+
|
806
|
+
</h3><table class="source_code">
|
807
|
+
<tr>
|
808
|
+
<td>
|
809
|
+
<pre class="lines">
|
810
|
+
|
811
|
+
|
812
|
+
35
|
813
|
+
36
|
814
|
+
37
|
815
|
+
38
|
816
|
+
39
|
817
|
+
40</pre>
|
818
|
+
</td>
|
819
|
+
<td>
|
820
|
+
<pre class="code"><span class="info file"># File 'lib/gematdd/paciente/individuo.rb', line 35</span>
|
821
|
+
|
822
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
|
823
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'> - Datos de </span><span class='embexpr_beg'>#{</span><span class='ivar'>@nombre</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='ivar'>@apellidos</span><span class='embexpr_end'>}</span><span class='tstring_content'>
|
824
|
+
Sexo: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_genero'>genero</span><span class='embexpr_end'>}</span><span class='tstring_content'>
|
825
|
+
Fecha de nacimiento: </span><span class='embexpr_beg'>#{</span><span class='ivar'>@fecha_nac</span><span class='embexpr_end'>}</span><span class='tstring_content'>
|
826
|
+
Ocupación: </span><span class='embexpr_beg'>#{</span><span class='ivar'>@ocupacion</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='tstring_end'>"</span></span>
|
827
|
+
<span class='kw'>end</span></pre>
|
828
|
+
</td>
|
829
|
+
</tr>
|
830
|
+
</table>
|
831
|
+
</div>
|
832
|
+
|
833
|
+
</div>
|
834
|
+
|
835
|
+
</div>
|
836
|
+
|
837
|
+
<div id="footer">
|
838
|
+
Generated on Wed Dec 12 00:08:12 2018 by
|
839
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
840
|
+
0.9.16 (ruby-2.5.1).
|
841
|
+
</div>
|
842
|
+
|
843
|
+
</div>
|
844
|
+
</body>
|
845
|
+
</html>
|