Class: Capitan::Calendar::Week

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(week_hash) ⇒ Week

Returns a new instance of Week.



7
8
9
10
# File 'lib/capitan/calendar/week.rb', line 7

def initialize(week_hash)
  @week = week_hash['week']
  @days = process_days(week_hash['days'])
end

Instance Attribute Details

#daysObject (readonly)

Returns the value of attribute days.



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

def days
  @days
end

#weekObject (readonly)

Returns the value of attribute week.



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

def week
  @week
end