Class: Projects::Ml::ModelFinder
- Inherits:
-
Object
- Object
- Projects::Ml::ModelFinder
- Includes:
- Gitlab::Utils::StrongMemoize
- Defined in:
- app/finders/projects/ml/model_finder.rb
Constant Summary collapse
- VALID_ORDER_BY =
%w[name created_at updated_at id].freeze
- VALID_SORT =
%w[asc desc].freeze
Instance Method Summary collapse
- #count ⇒ Object
- #execute ⇒ Object
-
#initialize(project, params = {}) ⇒ ModelFinder
constructor
A new instance of ModelFinder.
Constructor Details
#initialize(project, params = {}) ⇒ ModelFinder
Returns a new instance of ModelFinder.
11 12 13 14 |
# File 'app/finders/projects/ml/model_finder.rb', line 11 def initialize(project, params = {}) @project = project @params = params end |
Instance Method Details
#count ⇒ Object
20 21 22 |
# File 'app/finders/projects/ml/model_finder.rb', line 20 def count relation.length end |
#execute ⇒ Object
16 17 18 |
# File 'app/finders/projects/ml/model_finder.rb', line 16 def execute relation end |