-
Notifications
You must be signed in to change notification settings - Fork 0
Watching rss
lukes edited this page May 4, 2011
·
2 revisions
Use check :rss
to watch an RSS source. You'll always need to specify a source in a :from => "url"
parameter,
Herald.watch do
check :rss, :from => "example.com/.rss"
_for "keywords"
end
Give :from
an array value to watch more than one RSS source
Herald.watch do
check :rss, :from => ["example.com/1.rss", "example.com/2.rss"]
_for "keywords"
end
Alternatively, use the watch_rss
short method
Herald.watch_rss :from => "example.com/.rss" do
_for "keywords"
end