class Consulta
-
method initialize
-
method to_s
-
method to_f
-
method to_i
Attributes
paciente[RW]
tratamiento[RW]
Public Class Methods
new(nombre, apellidos, edad, genero, peso, talla, cadera, cintura, imc, porcentgrasa, rcc, peso_t_i, gasto_e_basal, efecto_t_a, gasto_ef, factor_actvf, gasto_e_total, paciente, tratamiento)
click to toggle source
Method to initialize every anthropometric measures and get if this person is patient and have a treatment already assignment
Calls superclass method
Individuo::new
# File lib/menud/menud.rb, line 170 def initialize(nombre, apellidos, edad, genero, peso, talla, cadera, cintura, imc, porcentgrasa, rcc, peso_t_i, gasto_e_basal, efecto_t_a, gasto_ef, factor_actvf, gasto_e_total, paciente, tratamiento) super :nombre, :apellidos, :edad, :genero, :peso, :talla, :cadera, :cintura, :imc, :porcentgrasa, :rcc, :peso_t_i, :gasto_e_basal, :efecto_t_a, :gasto_ef, :factor_actvf, :gasto_e_total @nombre = nombre @apellidos = apellidos @edad = edad @genero = genero @peso = peso @talla = talla @cadera = cadera @cintura = cintura @imc = imc @porcentgrasa = porcentgrasa @rcc = rcc @peso_t_i = peso_t_i @gasto_e_basal = gasto_e_basal @efecto_t_a = efecto_t_a @gasto_ef = gasto_ef @factor_actvf = factor_actvf @gasto_e_total = gasto_e_total @paciente = paciente @tratamiento = tratamiento end