Class: AgeGroup

Inherits:
Diet
  • Object
show all
Defined in:
lib/prct7/agegroup.rb

Instance Attribute Summary collapse

Attributes inherited from Diet

#gramos, #grasas, #hidratos, #nombre, #platos, #porcentaje, #porcion, #proteinas, #vct

Instance Method Summary collapse

Methods inherited from Diet

#<=>, #to_s

Constructor Details

#initialize(nombre, porcentaje, platos, porcion, gramos, vct, proteinas, grasas, hidratos, group) ⇒ AgeGroup

Returns a new instance of AgeGroup.



3
4
5
6
# File 'lib/prct7/agegroup.rb', line 3

def initialize(nombre,porcentaje,platos,porcion,gramos,vct,proteinas,grasas,hidratos,group)
    super(nombre,porcentaje,platos,porcion,gramos,vct,proteinas,grasas,hidratos)
    @group = group
end

Instance Attribute Details

#groupObject (readonly)

Returns the value of attribute group.



2
3
4
# File 'lib/prct7/agegroup.rb', line 2

def group
  @group
end

Instance Method Details

#method_age_groupObject

Metodo por el que se pregunta su existencia en las expectativas



8
9
# File 'lib/prct7/agegroup.rb', line 8

def method_age_group
end