Method: Atom::Tools#http_to_entries
- Defined in:
- lib/atom/tools.rb
#http_to_entries(url, complete_feed = false, http = Atom::HTTP.new) ⇒ Object
fetch and parse a Feed URL, returning the entries found
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/atom/tools.rb', line 7 def http_to_entries url, complete_feed = false, http = Atom::HTTP.new feed = Atom::Feed.new url, http if complete_feed feed.get_everything! else feed.update! end feed.entries end |