Class: ScheduleDef
- Inherits:
-
Object
- Object
- ScheduleDef
- Defined in:
- lib/coursegen/course/schedule/schedule_def.rb
Overview
Define schedule scheme for a lecture series
Instance Attribute Summary collapse
-
#first_day ⇒ Object
readonly
Returns the value of attribute first_day.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
-
#skips ⇒ Object
readonly
Returns the value of attribute skips.
-
#weekdays ⇒ Object
readonly
Returns the value of attribute weekdays.
Instance Method Summary collapse
-
#initialize(first_day: nil, weekdays: nil, number: nil, skips: []) ⇒ ScheduleDef
constructor
A new instance of ScheduleDef.
Constructor Details
#initialize(first_day: nil, weekdays: nil, number: nil, skips: []) ⇒ ScheduleDef
Returns a new instance of ScheduleDef.
6 7 8 9 10 11 |
# File 'lib/coursegen/course/schedule/schedule_def.rb', line 6 def initialize first_day: nil, weekdays: nil, number: nil, skips: [] @first_day = first_day @weekdays = weekdays @number = number @skips = skips end |
Instance Attribute Details
#first_day ⇒ Object (readonly)
Returns the value of attribute first_day.
4 5 6 |
# File 'lib/coursegen/course/schedule/schedule_def.rb', line 4 def first_day @first_day end |
#number ⇒ Object (readonly)
Returns the value of attribute number.
4 5 6 |
# File 'lib/coursegen/course/schedule/schedule_def.rb', line 4 def number @number end |
#skips ⇒ Object (readonly)
Returns the value of attribute skips.
4 5 6 |
# File 'lib/coursegen/course/schedule/schedule_def.rb', line 4 def skips @skips end |
#weekdays ⇒ Object (readonly)
Returns the value of attribute weekdays.
4 5 6 |
# File 'lib/coursegen/course/schedule/schedule_def.rb', line 4 def weekdays @weekdays end |