Class: TimetableSlot

Inherits:
Sequel::Model
  • Object
show all
Defined in:
app/models/timetable_slot.rb

Instance Method Summary collapse

Instance Method Details

#dayObject


9
10
11
# File 'app/models/timetable_slot.rb', line 9

def day
  Day.from_numeric(super)
end

#day=(new_day) ⇒ Object


13
14
15
# File 'app/models/timetable_slot.rb', line 13

def day=(new_day)
  super Day.to_numeric(new_day)
end