diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2015-05-15 21:39:11 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2015-05-15 21:39:11 +0200 |
commit | 45ba0e18f4c453ee4c0a329b3aa2ee5fa9f89530 (patch) | |
tree | 87693cd471128f0a673a5bc6af1978122b24322e /lib/rss2html/feed.rb | |
parent | d086c5eabb54599d31c44b8ffddd4f7840a7ddcd (diff) | |
download | rss2html-45ba0e18f4c453ee4c0a329b3aa2ee5fa9f89530.tar.gz rss2html-45ba0e18f4c453ee4c0a329b3aa2ee5fa9f89530.tar.bz2 rss2html-45ba0e18f4c453ee4c0a329b3aa2ee5fa9f89530.zip |
Honor limit on number of items to fetch.
Diffstat (limited to 'lib/rss2html/feed.rb')
-rw-r--r-- | lib/rss2html/feed.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rss2html/feed.rb b/lib/rss2html/feed.rb index f0840d7..45a88c2 100644 --- a/lib/rss2html/feed.rb +++ b/lib/rss2html/feed.rb @@ -26,6 +26,10 @@ module Rss2Html def initialize(args) @title = args.delete('title') @url = args.delete('url') + limit = args.delete('limit') + if limit + @url += "&limit=#{limit}" + end @feed_header = load_template('feed_header.html.erb') @feed_footer = load_template('feed_footer.html.erb') |