Class: DeployTokens::TokensFinder
- Inherits:
-
Object
- Object
- DeployTokens::TokensFinder
- Defined in:
- app/finders/deploy_tokens/tokens_finder.rb
Instance Attribute Summary collapse
-
#current_user ⇒ Object
readonly
Returns the value of attribute current_user.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(current_user, scope, params = {}) ⇒ TokensFinder
constructor
A new instance of TokensFinder.
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_user ⇒ Object (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 |
#params ⇒ Object (readonly)
Returns the value of attribute params.
10 11 12 |
# File 'app/finders/deploy_tokens/tokens_finder.rb', line 10 def params @params end |
#scope ⇒ Object (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
#execute ⇒ Object
18 19 20 |
# File 'app/finders/deploy_tokens/tokens_finder.rb', line 18 def execute by_active(init_collection) end |