Created
June 21, 2020 07:25
-
-
Save kirillshevch/8b8af72bfab67a71b6111c801ca9f497 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class WeatherUpdateJob | |
include Sidekiq::Worker | |
sidekiq_options retry: 3 | |
def perform | |
Weather.new(data: BestWeatherAPI.get) | |
Weather.save! | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment