Sha256: 57f238972693a489a8f234cd0595c736ea7932c8faca060b7bb70c9b893b3045
Contents?: true
Size: 590 Bytes
Versions: 4
Compression:
Stored size: 590 Bytes
Contents
# frozen_string_literal: true module DeepL module Requests module Glossary class List < Base def initialize(api, options = {}) super(api, options) end def request build_glossary_list(*get) end private def build_glossary_list(request, response) data = JSON.parse(response.body) data['glossaries'].map do |glossary| Resources::Glossary.new(glossary, request, response) end end def path 'glossaries' end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems