Class: Day

Inherits:
Object
  • Object
show all
Defined in:
lib/classes/day.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#breakfastObject

Returns the value of attribute breakfast.



2
3
4
# File 'lib/classes/day.rb', line 2

def breakfast
  @breakfast
end

#dateObject

Returns the value of attribute date.



2
3
4
# File 'lib/classes/day.rb', line 2

def date
  @date
end

#dining_hallObject

Returns the value of attribute dining_hall.



2
3
4
# File 'lib/classes/day.rb', line 2

def dining_hall
  @dining_hall
end

#dinnerObject

Returns the value of attribute dinner.



2
3
4
# File 'lib/classes/day.rb', line 2

def dinner
  @dinner
end

#lunchObject

Returns the value of attribute lunch.



2
3
4
# File 'lib/classes/day.rb', line 2

def lunch
  @lunch
end