Class: WinewooCore::Repositories::Mongo::ProducersMongoRepo
- Inherits:
-
Object
- Object
- WinewooCore::Repositories::Mongo::ProducersMongoRepo
- Defined in:
- lib/winewoo_core/repositories/mongo/producers_mongo_repo.rb
Instance Method Summary collapse
Instance Method Details
#find(filters) ⇒ Object
9 10 11 |
# File 'lib/winewoo_core/repositories/mongo/producers_mongo_repo.rb', line 9 def find(filters) WinewooCore::Services::Finders::Producers::ProducersFinderBuilder.build(filters).find end |
#get(producer_id) ⇒ Object
4 5 6 |
# File 'lib/winewoo_core/repositories/mongo/producers_mongo_repo.rb', line 4 def get(producer_id) return producer_id && User.find(producer_id) end |