Sha256: 6234f2772ef3d99557d53f3d041b35c99de6c2be9df60c1309f94667d24608a7
Contents?: true
Size: 1.11 KB
Versions: 4
Compression:
Stored size: 1.11 KB
Contents
# 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 class GlossaryApi def initialize(api, options = {}) @api = api @options = options end def create(name, source_lang, target_lang, entries, options = {}) DeepL::Requests::Glossary::Create.new(@api, name, source_lang, target_lang, entries, options) .request end def destroy(glossary_id, options = {}) DeepL::Requests::Glossary::Destroy.new(@api, glossary_id, options).request end def entries(glossary_id, options = {}) DeepL::Requests::Glossary::Entries.new(@api, glossary_id, options).request end def find(glossary_id, options = {}) DeepL::Requests::Glossary::Find.new(@api, glossary_id, options).request end def language_pairs(options = {}) DeepL::Requests::Glossary::LanguagePairs.new(@api, options).request end def list(options = {}) DeepL::Requests::Glossary::List.new(@api, options).request end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
deepl-rb-3.1.0 | lib/deepl/glossary_api.rb |
deepl-rb-3.0.2 | lib/deepl/glossary_api.rb |
deepl-rb-3.0.1 | lib/deepl/glossary_api.rb |
deepl-rb-3.0.0 | lib/deepl/glossary_api.rb |