Sha256: acf5dbf6d589635fdf51d62dc5795b8c966868c49fe0cae7e49c7e1245c77166
Contents?: true
Size: 730 Bytes
Versions: 4
Compression:
Stored size: 730 Bytes
Contents
# frozen_string_literal: true module DeepL module Requests module Glossary class LanguagePairs < Base def initialize(api, options = {}) super(api, options) end def request build_language_pair_list(*get) end private def build_language_pair_list(request, response) data = JSON.parse(response.body) data['supported_languages'].map do |language_pair| Resources::LanguagePair.new(language_pair['source_lang'], language_pair['target_lang'], request, response) end end def path 'glossary-language-pairs' end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems