Class: WinewooCore::Repositories::Mongo::InterproCriterionsMongoRepo::FinderBuilder
- Inherits:
-
Object
- Object
- WinewooCore::Repositories::Mongo::InterproCriterionsMongoRepo::FinderBuilder
- Defined in:
- lib/winewoo_core/repositories/mongo/interpro_criterions_mongo_repo.rb
Class Method Summary collapse
Class Method Details
.build(category, filters) ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/winewoo_core/repositories/mongo/interpro_criterions_mongo_repo.rb', line 33 def self.build(category, filters) case category when :appelations AocsFinder.new(filters) when :aoc AocsFinder.new(filters) when :grapes GrapesFinder.new(filters) when :storages StoragesFinder.new(filters) when :opportunities OpportunitiesFinder.new(filters) else PictosFinder.new(category, filters) end end |