lib/deepl/requests/glossary/destroy.rb in deepl-rb-2.5.3 vs lib/deepl/requests/glossary/destroy.rb in deepl-rb-3.0.0

- old
+ new

@@ -1,5 +1,8 @@ +# Copyright 2022 Daniel Herzog +# Use of this source code is governed by an MIT +# license that can be found in the LICENSE.md file. # frozen_string_literal: true module DeepL module Requests module Glossary @@ -10,10 +13,14 @@ super(api, options) @id = id end def request - build_response(*delete) + build_response(*execute_request_with_retries(delete_request)) + end + + def to_s + "DELETE #{uri.request_uri}" end private def build_response(_, _)