Class: WinewooCore::Repositories::Mongo::Queries::AdminQuery

Inherits:
UserQuery show all
Defined in:
lib/winewoo_core/repositories/mongo/queries/admin_query.rb

Instance Method Summary collapse

Methods inherited from UserQuery

#with_role

Methods inherited from WinewooQuery

#method_missing, #respond_to?, #respond_to_missing?

Constructor Details

#initializeAdminQuery

Returns a new instance of AdminQuery.



5
6
7
# File 'lib/winewoo_core/repositories/mongo/queries/admin_query.rb', line 5

def initialize
  super User.where(user_roles: :admin)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class WinewooCore::Repositories::Mongo::Queries::WinewooQuery