I'd like one of my classes to only run on Tuesday,Wed,and Thursday. I have the following:
class ReminderJob
def perform
begin
# Days to send: Tuesdays, Wednesdays, Thursdays
next Date.today.wday.instance_of?('2,3,4')
The idea being if it is not Tues,Wed,Thur exist the class. Suggestions on how to solve this with ruby? Thanks