Method: Fruta#initialize

Defined in:
lib/nutrientes/alimento.rb

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

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



162
163
164
# File 'lib/nutrientes/alimento.rb', line 162

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