This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/app/jobs/fetch_time.rb

14 lines
323 B
Ruby

# require 'open-uri'
# require 'nokogiri'
module FetchTime
@queue = :my_job_queue
def self.perform()
# sleep 10
# doc = Nokogiri::HTML(open('http://www.timeanddate.com/worldclock/city.html?n=241'))
# CronMail.time_check(doc.at('#ct').children.first.text).deliver
# puts "Mail Sent"
# true
end
end