module TimeRounder::LoadSchedule
Handles loading of the proper schedule
Public Instance Methods
get_schedule(minutes)
click to toggle source
loads the proper schedule based what minute is passed
# File lib/time_rounder/load_schedule.rb, line 9 def get_schedule(minutes) case minutes when 15 self.class.send(:include, TimeRounder::Schedule::FifteenMinute) else raise TimeRounder::ScheduleNotFound end end