Class: Capitan::Calendar::Day

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dayObject

Returns the value of attribute day.



5
6
7
# File 'lib/capitan/calendar/day.rb', line 5

def day
  @day
end

#showsObject

Returns the value of attribute shows.



5
6
7
# File 'lib/capitan/calendar/day.rb', line 5

def shows
  @shows
end