Welcome to mirror list, hosted at ThFree Co, Russian Federation.

update_model_service.rb « ml « services « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dade6c72588a2d58f46d3a805fcaf12172f2667e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

module Ml
  class UpdateModelService
    def initialize(model, description)
      @model = model
      @description = description
    end

    def execute
      @model.update!(description: @description)

      @model
    end
  end
end