Class: Packages::PackageFileFinder
- Inherits:
-
Object
- Object
- Packages::PackageFileFinder
- Defined in:
- app/finders/packages/package_file_finder.rb
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.
6 7 8 9 10 |
# File 'app/finders/packages/package_file_finder.rb', line 6 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.
4 5 6 |
# File 'app/finders/packages/package_file_finder.rb', line 4 def file_name @file_name end |
#package ⇒ Object (readonly)
Returns the value of attribute package.
4 5 6 |
# File 'app/finders/packages/package_file_finder.rb', line 4 def package @package end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
4 5 6 |
# File 'app/finders/packages/package_file_finder.rb', line 4 def params @params end |
Instance Method Details
#execute ⇒ Object
12 13 14 |
# File 'app/finders/packages/package_file_finder.rb', line 12 def execute package_files.last end |
#execute! ⇒ Object
16 17 18 |
# File 'app/finders/packages/package_file_finder.rb', line 16 def execute! package_files.last! end |