Class: ScheduleDef

Inherits:
Object
  • Object
show all
Defined in:
lib/coursegen/course/schedule/schedule_def.rb

Overview

Define schedule scheme for a lecture series

Instance Attribute Summary collapse

Instance Method Summary collapse

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_timeObject (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_timesObject (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_dayObject (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

#numberObject (readonly)

Returns the value of attribute number.



4
5
6
# File 'lib/coursegen/course/schedule/schedule_def.rb', line 4

def number
  @number
end

#skipsObject (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_timeObject (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_timesObject (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

#weekdaysObject (readonly)

Returns the value of attribute weekdays.



4
5
6
# File 'lib/coursegen/course/schedule/schedule_def.rb', line 4

def weekdays
  @weekdays
end