Class: Persona
- Inherits:
-
Object
- Object
- Persona
- Includes:
- Comparable, Enumerable
- Defined in:
- lib/alu0100406580_nutricion/paciente.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#apellidos ⇒ Object
Returns the value of attribute apellidos.
-
#edad ⇒ Object
Returns the value of attribute edad.
-
#genero ⇒ Object
Returns the value of attribute genero.
-
#nombre ⇒ Object
Returns the value of attribute nombre.
Instance Method Summary collapse
-
#initialize(nombre, apellidos, edad, genero) ⇒ Persona
constructor
A new instance of Persona.
Constructor Details
#initialize(nombre, apellidos, edad, genero) ⇒ Persona
Returns a new instance of Persona.
20 21 22 23 24 25 |
# File 'lib/alu0100406580_nutricion/paciente.rb', line 20 def initialize(nombre, apellidos, edad, genero) @nombre = nombre @apellidos = apellidos @edad = edad @genero = genero end |
Instance Attribute Details
#apellidos ⇒ Object
Returns the value of attribute apellidos.
18 19 20 |
# File 'lib/alu0100406580_nutricion/paciente.rb', line 18 def apellidos @apellidos end |
#edad ⇒ Object
Returns the value of attribute edad.
18 19 20 |
# File 'lib/alu0100406580_nutricion/paciente.rb', line 18 def edad @edad end |
#genero ⇒ Object
Returns the value of attribute genero.
18 19 20 |
# File 'lib/alu0100406580_nutricion/paciente.rb', line 18 def genero @genero end |
#nombre ⇒ Object
Returns the value of attribute nombre.
18 19 20 |
# File 'lib/alu0100406580_nutricion/paciente.rb', line 18 def nombre @nombre end |