Class: WinewooCore::Repositories::Mongo::CriterionsMongoRepo::AocsFinder

Inherits:
Finder
  • Object
show all
Defined in:
lib/winewoo_core/repositories/mongo/criterions_mongo_repo.rb

Instance Method Summary collapse

Methods inherited from Finder

#initialize, #map

Constructor Details

This class inherits a constructor from WinewooCore::Repositories::Mongo::CriterionsMongoRepo::Finder

Instance Method Details

#findObject



103
104
105
106
107
# File 'lib/winewoo_core/repositories/mongo/criterions_mongo_repo.rb', line 103

def find
  interpro = @filters.interpro
  return [] unless interpro && interpro.wine_data_element
  interpro.wine_data_element.appelations
end