Class: Pescado

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

Overview

Class Pescado Defines Fish and Shelfish

Instance Attribute Summary

Attributes inherited from Alimento

#glucids, #lipids, #name, #proteins

Instance Method Summary collapse

Methods inherited from Alimento

#<=>, #caloric_value, #to_s

Constructor Details

#initialize(name, proteins, glucids, lipids) ⇒ Pescado

Initialization of the object given its attributes

Parameters:

  • name (String)

    Name of the Alimento

  • proteins (Fixnum)

    Proteins ammount of the Alimento

  • glucids (Fixnum)

    Glucids ammount of the Alimento

  • lipids (Fixnum)

    Lipids ammount of the Alimento



110
111
112
# File 'lib/nutrientes/alimento.rb', line 110

def initialize(name, proteins, glucids, lipids)
    super(name, proteins, glucids, lipids)
end