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