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

- old
+ new

@@ -1,16 +1,23 @@ +# 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 class LanguagePairs < Base def initialize(api, options = {}) - super(api, options) + super end def request - build_language_pair_list(*get) + build_language_pair_list(*execute_request_with_retries(get_request)) + end + + def to_s + "GET #{uri.request_uri}" end private def build_language_pair_list(request, response)