Class: BulkImports::ImportsFinder

Inherits:
Object
  • Object
show all
Defined in:
app/finders/bulk_imports/imports_finder.rb

Instance Method Summary collapse

Constructor Details

#initialize(user:, params: {}) ⇒ ImportsFinder

Returns a new instance of ImportsFinder.


5
6
7
8
# File 'app/finders/bulk_imports/imports_finder.rb', line 5

def initialize(user:, params: {})
  @user = user
  @params = params
end

Instance Method Details

#executeObject


10
11
12
13
# File 'app/finders/bulk_imports/imports_finder.rb', line 10

def execute
  imports = filter_by_status(user.bulk_imports)
  sort(imports)
end