lib/mistral_client/execution.rb in mistral_client-1.2.1 vs lib/mistral_client/execution.rb in mistral_client-1.3.0

- old
+ new

@@ -26,10 +26,11 @@ reload elsif @workflow_id create_execution end end + # rubocop:enable Metrics/ParameterLists def patch(description: nil, state: nil, env: nil) body = {} body[:description] = description unless description.nil? body[:state] = state if state @@ -41,17 +42,19 @@ ivars_from_response(resp) end private + # rubocop:disable Metrics/ParameterLists def set_attributes(server, workflow_id, env, task_name, id, input) @server = server @env = env @task_name = task_name @id = id @workflow_id = workflow_id @input = input end + # rubocop:enable Metrics/ParameterLists def create_execution body = { workflow_id: @workflow_id } params = {} params[:env] = @env if @env