Class: MenuContent

Inherits:
Menu
  • Object
show all
Defined in:
lib/Prct07/MenuContent.rb

Overview

Author:

Instance Attribute Summary collapse

Attributes inherited from Menu

#Content, #Etiqueta, #Porcentage, #Title

Instance Method Summary collapse

Methods inherited from Menu

#<=>, #check_content, #check_name, #check_porcentage, #etiqueta, #get_fats, #get_hidrates, #get_proteins, #get_vct, #plato, #porcentage, #to_s

Constructor Details

#initialize(title, porcentage, content, groups) ⇒ MenuContent

Returns a new instance of MenuContent.



5
6
7
8
# File 'lib/Prct07/MenuContent.rb', line 5

def initialize(title, porcentage, content, groups)
  super(title, porcentage, content)
  @groups = groups
end

Instance Attribute Details

#groupsObject (readonly)

Returns the value of attribute groups.



3
4
5
# File 'lib/Prct07/MenuContent.rb', line 3

def groups
  @groups
end

Instance Method Details

#ownMethodObject

used for TDD expectatives



11
12
13
# File 'lib/Prct07/MenuContent.rb', line 11

def ownMethod
  true
end