Sha256: 776d3e249d8c02b0382f97f64550d951d36463095652ac99bfeacec0734bc2b7
Contents?: true
Size: 575 Bytes
Versions: 4
Compression:
Stored size: 575 Bytes
Contents
# frozen_string_literal: true module DeepL module Requests module Glossary class Find < Base attr_reader :id def initialize(api, id, options = {}) super(api, options) @id = id end def request build_glossary(*get) end private def build_glossary(request, response) glossary = JSON.parse(response.body) Resources::Glossary.new(glossary, request, response) end def path "glossaries/#{id}" end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems