Class: WinewooUser::News::ListNewsFeed
- Inherits:
-
BaseUseCase
- Object
- BaseUseCase
- WinewooUser::News::ListNewsFeed
- Defined in:
- lib/winewoo_core/use_cases/winewoo_user/news/list_news_feed.rb
Instance Method Summary collapse
- #call(filters, with_error) {|UseCaseResults.found(tweets)| ... } ⇒ Object
-
#initialize(log_params = nil) ⇒ ListNewsFeed
constructor
A new instance of ListNewsFeed.
Constructor Details
#initialize(log_params = nil) ⇒ ListNewsFeed
Returns a new instance of ListNewsFeed.
4 5 6 |
# File 'lib/winewoo_core/use_cases/winewoo_user/news/list_news_feed.rb', line 4 def initialize(log_params=nil) super(WinewooCore.feed_repo.new, log_params) end |
Instance Method Details
#call(filters, with_error) {|UseCaseResults.found(tweets)| ... } ⇒ Object
9 10 11 12 |
# File 'lib/winewoo_core/use_cases/winewoo_user/news/list_news_feed.rb', line 9 def call(filters, with_error) tweets = self.repo.find(filters, with_error) yield UseCaseResults.found(tweets) end |