Class: Day
- Inherits:
-
Object
- Object
- Day
- Defined in:
- lib/classes/day.rb
Instance Attribute Summary collapse
-
#breakfast ⇒ Object
Returns the value of attribute breakfast.
-
#date ⇒ Object
Returns the value of attribute date.
-
#dining_hall ⇒ Object
Returns the value of attribute dining_hall.
-
#dinner ⇒ Object
Returns the value of attribute dinner.
-
#lunch ⇒ Object
Returns the value of attribute lunch.
Instance Method Summary collapse
-
#initialize(dining_hall, date) ⇒ Day
constructor
A new instance of Day.
Constructor Details
#initialize(dining_hall, date) ⇒ Day
Returns a new instance of Day.
3 4 5 6 |
# File 'lib/classes/day.rb', line 3 def initialize(dining_hall, date) @date = date @dining_hall = dining_hall end |
Instance Attribute Details
#breakfast ⇒ Object
Returns the value of attribute breakfast.
2 3 4 |
# File 'lib/classes/day.rb', line 2 def breakfast @breakfast end |
#date ⇒ Object
Returns the value of attribute date.
2 3 4 |
# File 'lib/classes/day.rb', line 2 def date @date end |
#dining_hall ⇒ Object
Returns the value of attribute dining_hall.
2 3 4 |
# File 'lib/classes/day.rb', line 2 def dining_hall @dining_hall end |
#dinner ⇒ Object
Returns the value of attribute dinner.
2 3 4 |
# File 'lib/classes/day.rb', line 2 def dinner @dinner end |
#lunch ⇒ Object
Returns the value of attribute lunch.
2 3 4 |
# File 'lib/classes/day.rb', line 2 def lunch @lunch end |