Class: Clusters::Agents::Authorizations::UserAccess::Finder

Inherits:
Object
  • Object
show all
Defined in:
app/finders/clusters/agents/authorizations/user_access/finder.rb

Instance Method Summary collapse

Constructor Details

#initialize(user, agent: nil, project: nil, preload: true, limit: nil) ⇒ Finder

Returns a new instance of Finder.



8
9
10
11
12
13
14
# File 'app/finders/clusters/agents/authorizations/user_access/finder.rb', line 8

def initialize(user, agent: nil, project: nil, preload: true, limit: nil)
  @user = user
  @agent = agent
  @project = project
  @limit = limit
  @preload = preload
end

Instance Method Details

#executeObject



16
17
18
# File 'app/finders/clusters/agents/authorizations/user_access/finder.rb', line 16

def execute
  project_authorizations + group_authorizations
end