Class: Feed2Gram::FiltersPosts

Inherits:
Object
  • Object
show all
Defined in:
lib/feed2gram/filters_posts.rb

Instance Method Summary collapse

Instance Method Details

#filter(posts, cache) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/feed2gram/filters_posts.rb', line 3

def filter(posts, cache)
  posts.reject { |post|
    cache.posted.include?(post.url) ||
      cache.failed.include?(post.url) ||
      cache.skipped.include?(post.url)
  }
end