Class: Feedigest::FeedFetcher
- Inherits:
-
Object
- Object
- Feedigest::FeedFetcher
- Defined in:
- lib/feedigest/feed_fetcher.rb
Defined Under Namespace
Classes: Feed
Constant Summary collapse
Instance Attribute Summary collapse
-
#feed_urls ⇒ Object
readonly
Returns the value of attribute feed_urls.
-
#filter_cmd ⇒ Object
readonly
Returns the value of attribute filter_cmd.
Instance Method Summary collapse
- #feeds ⇒ Object
-
#initialize(feed_urls, filter_cmd = nil) ⇒ FeedFetcher
constructor
A new instance of FeedFetcher.
Constructor Details
#initialize(feed_urls, filter_cmd = nil) ⇒ FeedFetcher
Returns a new instance of FeedFetcher.
12 13 14 15 |
# File 'lib/feedigest/feed_fetcher.rb', line 12 def initialize(feed_urls, filter_cmd = nil) @feed_urls = feed_urls @filter_cmd = filter_cmd end |
Instance Attribute Details
#feed_urls ⇒ Object (readonly)
Returns the value of attribute feed_urls.
10 11 12 |
# File 'lib/feedigest/feed_fetcher.rb', line 10 def feed_urls @feed_urls end |
#filter_cmd ⇒ Object (readonly)
Returns the value of attribute filter_cmd.
10 11 12 |
# File 'lib/feedigest/feed_fetcher.rb', line 10 def filter_cmd @filter_cmd end |
Instance Method Details
#feeds ⇒ Object
17 18 19 |
# File 'lib/feedigest/feed_fetcher.rb', line 17 def feeds @feeds ||= all_feeds.select { |f| process_feed?(f) } end |