Class: Capitan::Calendar::Day
- Inherits:
-
Object
- Object
- Capitan::Calendar::Day
- Defined in:
- lib/capitan/calendar/day.rb
Instance Attribute Summary collapse
-
#day ⇒ Object
Returns the value of attribute day.
-
#shows ⇒ Object
Returns the value of attribute shows.
Instance Method Summary collapse
-
#initialize(day_hash) ⇒ Day
constructor
A new instance of Day.
Constructor Details
#initialize(day_hash) ⇒ Day
Returns a new instance of Day.
7 8 9 10 |
# File 'lib/capitan/calendar/day.rb', line 7 def initialize(day_hash) @day = Date.parse(day_hash['day']) @shows = process_shows(day_hash['shows']) end |
Instance Attribute Details
#day ⇒ Object
Returns the value of attribute day.
5 6 7 |
# File 'lib/capitan/calendar/day.rb', line 5 def day @day end |
#shows ⇒ Object
Returns the value of attribute shows.
5 6 7 |
# File 'lib/capitan/calendar/day.rb', line 5 def shows @shows end |