Class: DeepL::Resources::Glossary
- Defined in:
 - lib/deepl/resources/glossary.rb
 
Instance Attribute Summary collapse
- 
  
    
      #creation_time  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute creation_time.
 - 
  
    
      #entry_count  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute entry_count.
 - 
  
    
      #id  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute id.
 - 
  
    
      #name  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute name.
 - 
  
    
      #ready  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute ready.
 - 
  
    
      #source_lang  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute source_lang.
 - 
  
    
      #target_lang  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute target_lang.
 
Attributes inherited from Base
Instance Method Summary collapse
- 
  
    
      #initialize(glossary, *args)  ⇒ Glossary 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Glossary.
 - #to_s ⇒ Object
 
Constructor Details
#initialize(glossary, *args) ⇒ Glossary
Returns a new instance of Glossary.
      11 12 13 14 15 16 17 18 19 20 21  | 
    
      # File 'lib/deepl/resources/glossary.rb', line 11 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  | 
  
Instance Attribute Details
#creation_time ⇒ Object (readonly)
Returns the value of attribute creation_time.
      9 10 11  | 
    
      # File 'lib/deepl/resources/glossary.rb', line 9 def creation_time @creation_time end  | 
  
#entry_count ⇒ Object (readonly)
Returns the value of attribute entry_count.
      9 10 11  | 
    
      # File 'lib/deepl/resources/glossary.rb', line 9 def entry_count @entry_count end  | 
  
#id ⇒ Object (readonly)
Returns the value of attribute id.
      9 10 11  | 
    
      # File 'lib/deepl/resources/glossary.rb', line 9 def id @id end  | 
  
#name ⇒ Object (readonly)
Returns the value of attribute name.
      9 10 11  | 
    
      # File 'lib/deepl/resources/glossary.rb', line 9 def name @name end  | 
  
#ready ⇒ Object (readonly)
Returns the value of attribute ready.
      9 10 11  | 
    
      # File 'lib/deepl/resources/glossary.rb', line 9 def ready @ready end  | 
  
#source_lang ⇒ Object (readonly)
Returns the value of attribute source_lang.
      9 10 11  | 
    
      # File 'lib/deepl/resources/glossary.rb', line 9 def source_lang @source_lang end  | 
  
#target_lang ⇒ Object (readonly)
Returns the value of attribute target_lang.
      9 10 11  | 
    
      # File 'lib/deepl/resources/glossary.rb', line 9 def target_lang @target_lang end  | 
  
Instance Method Details
#to_s ⇒ Object
      23 24 25  | 
    
      # File 'lib/deepl/resources/glossary.rb', line 23 def to_s "#{id} - #{name}" end  |