For the Worker.perform_in(1.hour) method how could I write it so that the number 1 was a dynamic variable?
Worker.perform_in(1.hour)
I would like to write something like: Worker.perform_in(a.hours)
Worker.perform_in(a.hours)
What you wrote will work fine:
a = 1 Worker.perform_in(a.hours)