Class: WinewooCore::Services::Finders::Wines::ListOfWinesFinder
- Inherits:
-
WinesFinder
- Object
- WinesFinder
- WinewooCore::Services::Finders::Wines::ListOfWinesFinder
- Defined in:
- lib/winewoo_core/services/finders/wines/list_of_wines_finder.rb
Instance Method Summary collapse
Methods inherited from WinesFinder
Constructor Details
This class inherits a constructor from WinewooCore::Services::Finders::Wines::WinesFinder
Instance Method Details
#find ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/winewoo_core/services/finders/wines/list_of_wines_finder.rb', line 4 def find wines = @filters.list_of_wines.map do |w| wine = Wine.find(w[:id]) wine if wine.published? && wine.official? # TODO UNOFFICIALS # wine if wine.published? && wine.official? end return wines.compact, nil, nil end |