Class: Capitan::Calendar::Week
- Inherits:
-
Object
- Object
- Capitan::Calendar::Week
- Defined in:
- lib/capitan/calendar/week.rb
Instance Attribute Summary collapse
-
#days ⇒ Object
readonly
Returns the value of attribute days.
-
#week ⇒ Object
readonly
Returns the value of attribute week.
Instance Method Summary collapse
-
#initialize(week_hash) ⇒ Week
constructor
A new instance of Week.
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
#days ⇒ Object (readonly)
Returns the value of attribute days.
5 6 7 |
# File 'lib/capitan/calendar/week.rb', line 5 def days @days end |
#week ⇒ Object (readonly)
Returns the value of attribute week.
5 6 7 |
# File 'lib/capitan/calendar/week.rb', line 5 def week @week end |