Sha256: 037bf2814cc49cac2ca4e93b0357e3642d2f15867290de1462340990d85fbc69
Contents?: true
Size: 1003 Bytes
Versions: 4
Compression:
Stored size: 1003 Bytes
Contents
# 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-2.5.3 | lib/deepl/glossary_api.rb |
deepl-rb-2.5.2 | lib/deepl/glossary_api.rb |
deepl-rb-2.5.1 | lib/deepl/glossary_api.rb |
deepl-rb-2.5.0 | lib/deepl/glossary_api.rb |