Class: Clusters::Agents::Authorizations::CiAccess::Finder
- Inherits:
-
Object
- Object
- Clusters::Agents::Authorizations::CiAccess::Finder
- Defined in:
- app/finders/clusters/agents/authorizations/ci_access/finder.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(project) ⇒ Finder
constructor
A new instance of Finder.
Constructor Details
#initialize(project) ⇒ Finder
Returns a new instance of Finder.
8 9 10 |
# File 'app/finders/clusters/agents/authorizations/ci_access/finder.rb', line 8 def initialize(project) @project = project end |
Instance Method Details
#execute ⇒ Object
12 13 14 15 16 |
# File 'app/finders/clusters/agents/authorizations/ci_access/finder.rb', line 12 def execute # closest, most-specific authorization for a given agent wins ( + + ) .uniq(&:agent_id) end |