I have this code in Python that I\'m trying to rewrite in ruby:
from apscheduler.schedulers.background import BackgroundScheduler # Set up the loop scheduler