Skip to content
lukes edited this page May 4, 2011 · 2 revisions

By default Herald will sleep for 1 minute after checking each of the sources independently. To set a different sleep time pass herald every, followed by a Hash of quantity => unit

Seconds

Herald.watch_twitter do
  _for "soundofmusic"
  every 30 => "seconds"
end

Hours

Herald.watch_rss do
  _for "soundofmusic"
  every 1 => "hour"
end

Days

Herald.watch_website do
  _for "soundofmusic"
  every 7 => "days"
end

See also

Clone this wiki locally