Class: Ci::BuildSourceFinder
- Inherits:
-
Object
- Object
- Ci::BuildSourceFinder
- Defined in:
- app/finders/ci/build_source_finder.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(relation:, sources:, project:, params: {}) ⇒ BuildSourceFinder
constructor
A new instance of BuildSourceFinder.
Constructor Details
#initialize(relation:, sources:, project:, params: {}) ⇒ BuildSourceFinder
Returns a new instance of BuildSourceFinder.
5 6 7 8 9 10 |
# File 'app/finders/ci/build_source_finder.rb', line 5 def initialize(relation:, sources:, project:, params: {}) @relation = relation @sources = sources @project = project @params = params end |
Instance Method Details
#execute ⇒ Object
12 13 14 15 16 |
# File 'app/finders/ci/build_source_finder.rb', line 12 def execute return relation unless sources.present? filter_by_source end |