Class: WinewooCore::Repositories::Mongo::CriterionsMongoRepo::FinderBuilder
- Inherits:
-
Object
- Object
- WinewooCore::Repositories::Mongo::CriterionsMongoRepo::FinderBuilder
- Defined in:
- lib/winewoo_core/repositories/mongo/criterions_mongo_repo.rb
Class Method Summary collapse
Class Method Details
.build(category, filters) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/winewoo_core/repositories/mongo/criterions_mongo_repo.rb', line 23 def self.build(category, filters) case category when :appelations AppelationsFinder.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 |