class Booker::Models::LocationDaySchedule
Constants
- EndTime
- StartTime
- Weekday
Attributes
EndTime[RW]
StartTime[RW]
Weekday[RW]
Public Class Methods
from_hash(hash)
click to toggle source
Calls superclass method
# File lib/booker/models/location_day_schedule.rb, line 8 def self.from_hash(hash) model = super model.Weekday = to_wday(model.Weekday) strftime_format = '%T' model.StartTime = model.StartTime.try(:strftime, strftime_format) model.EndTime = model.EndTime.try(:strftime, strftime_format) model end