Class: Pescadosymariscos

Inherits:
Alimento show all
Defined in:
lib/nutrientes/alimento.rb

Instance Attribute Summary

Attributes inherited from Alimento

#glucidos, #indexglucosa, #lipidos, #nombre, #proteinas

Instance Method Summary collapse

Methods inherited from Alimento

#<=>, #calculate_index, #v_energetico

Constructor Details

#initialize(nombre, p, g, l) ⇒ Pescadosymariscos

Returns a new instance of Pescadosymariscos



94
95
96
# File 'lib/nutrientes/alimento.rb', line 94

def initialize(nombre, p, g, l)
	super(nombre, p, g, l)
end

Instance Method Details

#to_sObject

Converts the object into a string



99
100
101
# File 'lib/nutrientes/alimento.rb', line 99

def to_s
	return "Nombre: #{@nombre}, Proteinas: #{@proteinas}gr, GlĂșcidos: #{@glucidos}gr, Lipidos: #{@lipidos}gr Grupo: pescados y mariscos"
end