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
-
#end_time ⇒ Object
readonly
Returns the value of attribute end_time.
-
#end_times ⇒ Object
readonly
Returns the value of attribute end_times.
-
#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.
-
#start_time ⇒ Object
readonly
Returns the value of attribute start_time.
-
#start_times ⇒ Object
readonly
Returns the value of attribute start_times.
-
#weekdays ⇒ Object
readonly
Returns the value of attribute weekdays.
Instance Method Summary collapse
-
#initialize(first_day: nil, weekdays: nil, number: nil, skips: [], start_time: nil, end_time: nil, start_times: [], end_times: []) ⇒ ScheduleDef
constructor
A new instance of ScheduleDef.
Constructor Details
#initialize(first_day: nil, weekdays: nil, number: nil, skips: [], start_time: nil, end_time: nil, start_times: [], end_times: []) ⇒ ScheduleDef
Returns a new instance of ScheduleDef.
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/coursegen/course/schedule/schedule_def.rb', line 6 def initialize(first_day: nil, weekdays: nil, number: nil, skips: [], start_time: nil, end_time: nil, start_times: [], end_times: []) @first_day = first_day @weekdays = weekdays @number = number @skips = skips @start_time = start_time @end_time = end_time @start_times = start_times @end_times = end_times end |
Instance Attribute Details
#end_time ⇒ Object (readonly)
Returns the value of attribute end_time.
4 5 6 |
# File 'lib/coursegen/course/schedule/schedule_def.rb', line 4 def end_time @end_time end |
#end_times ⇒ Object (readonly)
Returns the value of attribute end_times.
4 5 6 |
# File 'lib/coursegen/course/schedule/schedule_def.rb', line 4 def end_times @end_times end |
#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 |
#start_time ⇒ Object (readonly)
Returns the value of attribute start_time.
4 5 6 |
# File 'lib/coursegen/course/schedule/schedule_def.rb', line 4 def start_time @start_time end |
#start_times ⇒ Object (readonly)
Returns the value of attribute start_times.
4 5 6 |
# File 'lib/coursegen/course/schedule/schedule_def.rb', line 4 def start_times @start_times 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 |