Class: Packages::PackageFileFinder
- Inherits:
-
Object
- Object
- Packages::PackageFileFinder
- Defined in:
- app/finders/packages/package_file_finder.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#file_name ⇒ Object
readonly
Returns the value of attribute file_name.
-
#package ⇒ Object
readonly
Returns the value of attribute package.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
- #execute ⇒ Object
- #execute! ⇒ Object
-
#initialize(package, file_name, params = {}) ⇒ PackageFileFinder
constructor
A new instance of PackageFileFinder.
Constructor Details
#initialize(package, file_name, params = {}) ⇒ PackageFileFinder
Returns a new instance of PackageFileFinder.
5 6 7 8 9 |
# File 'app/finders/packages/package_file_finder.rb', line 5 def initialize(package, file_name, params = {}) @package = package @file_name = file_name @params = params end |
Instance Attribute Details
#file_name ⇒ Object (readonly)
Returns the value of attribute file_name.
3 4 5 |
# File 'app/finders/packages/package_file_finder.rb', line 3 def file_name @file_name end |
#package ⇒ Object (readonly)
Returns the value of attribute package.
3 4 5 |
# File 'app/finders/packages/package_file_finder.rb', line 3 def package @package end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
3 4 5 |
# File 'app/finders/packages/package_file_finder.rb', line 3 def params @params end |
Instance Method Details
#execute ⇒ Object
11 12 13 |
# File 'app/finders/packages/package_file_finder.rb', line 11 def execute package_files.last end |
#execute! ⇒ Object
15 16 17 |
# File 'app/finders/packages/package_file_finder.rb', line 15 def execute! package_files.last! end |