Class: DeployTokens::TokensFinder

Inherits:
Object
  • Object
show all
Defined in:
app/finders/deploy_tokens/tokens_finder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(current_user, scope, params = {}) ⇒ TokensFinder

Returns a new instance of TokensFinder.



12
13
14
15
16
# File 'app/finders/deploy_tokens/tokens_finder.rb', line 12

def initialize(current_user, scope, params = {})
  @current_user = current_user
  @scope = scope
  @params = params
end

Instance Attribute Details

#current_userObject (readonly)

Returns the value of attribute current_user.



10
11
12
# File 'app/finders/deploy_tokens/tokens_finder.rb', line 10

def current_user
  @current_user
end

#paramsObject (readonly)

Returns the value of attribute params.



10
11
12
# File 'app/finders/deploy_tokens/tokens_finder.rb', line 10

def params
  @params
end

#scopeObject (readonly)

Returns the value of attribute scope.



10
11
12
# File 'app/finders/deploy_tokens/tokens_finder.rb', line 10

def scope
  @scope
end

Instance Method Details

#executeObject



18
19
20
# File 'app/finders/deploy_tokens/tokens_finder.rb', line 18

def execute
  by_active(init_collection)
end