Sha256: 8edcca774e585c0a77516eae170fd3f4f8a825bb294a03a0c11a2ac0463a55dd
Contents?: true
Size: 754 Bytes
Versions: 4
Compression:
Stored size: 754 Bytes
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 module Resources class Glossary < Base attr_reader :id, :name, :ready, :source_lang, :target_lang, :creation_time, :entry_count def initialize(glossary, *args) super(*args) @id = glossary['glossary_id'] @name = glossary['name'] @ready = glossary['ready'] @source_lang = glossary['source_lang'] @target_lang = glossary['target_lang'] @creation_time = glossary['creation_time'] @entry_count = glossary['entry_count'] end def to_s "#{id} - #{name}" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems