Class: Packages::Maven::PackageFinder
- Inherits:
-
Object
- Object
- Packages::Maven::PackageFinder
- Defined in:
- app/finders/packages/maven/package_finder.rb
Instance Attribute Summary collapse
-
#current_user ⇒ Object
readonly
Returns the value of attribute current_user.
-
#group ⇒ Object
readonly
Returns the value of attribute group.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#project ⇒ Object
readonly
Returns the value of attribute project.
Instance Method Summary collapse
- #execute ⇒ Object
- #execute! ⇒ Object
-
#initialize(path, current_user, project: nil, group: nil) ⇒ PackageFinder
constructor
A new instance of PackageFinder.
Constructor Details
#initialize(path, current_user, project: nil, group: nil) ⇒ PackageFinder
Returns a new instance of PackageFinder.
7 8 9 10 11 12 |
# File 'app/finders/packages/maven/package_finder.rb', line 7 def initialize(path, current_user, project: nil, group: nil) @path = path @current_user = current_user @project = project @group = group end |
Instance Attribute Details
#current_user ⇒ Object (readonly)
Returns the value of attribute current_user
5 6 7 |
# File 'app/finders/packages/maven/package_finder.rb', line 5 def current_user @current_user end |
#group ⇒ Object (readonly)
Returns the value of attribute group
5 6 7 |
# File 'app/finders/packages/maven/package_finder.rb', line 5 def group @group end |
#path ⇒ Object (readonly)
Returns the value of attribute path
5 6 7 |
# File 'app/finders/packages/maven/package_finder.rb', line 5 def path @path end |
#project ⇒ Object (readonly)
Returns the value of attribute project
5 6 7 |
# File 'app/finders/packages/maven/package_finder.rb', line 5 def project @project end |
Instance Method Details
#execute ⇒ Object
14 15 16 |
# File 'app/finders/packages/maven/package_finder.rb', line 14 def execute packages_with_path.last end |
#execute! ⇒ Object
18 19 20 |
# File 'app/finders/packages/maven/package_finder.rb', line 18 def execute! packages_with_path.last! end |