Ruby on rails Timer

I want to deploy my app (build on rubyNrails) on heroku and want a particular method to run at exactly 10:00 pm . Googled about it and it says to use whenever gem or scheduler gem. But didn’t got how to do that at all. If you know any tutorial for same or some good resource, would be a lot of help.