Module: Feedtosis::FeedInstanceMethods
- Defined in:
- lib/extensions/feed_normalizer/feed_instance_methods.rb
Instance Method Summary collapse
-
#new_items ⇒ Object
(also: #new_entries)
Returns only the feeds that are new.
Instance Method Details
#new_items ⇒ Object Also known as: new_entries
Returns only the feeds that are new.
7 8 9 10 11 |
# File 'lib/extensions/feed_normalizer/feed_instance_methods.rb', line 7 def new_items self.entries.select do |e| e.instance_variable_get(:@_seen) == false end end |