Class: DeepL::Resources::Text
Instance Attribute Summary collapse
- 
  
    
      #detected_source_language  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute detected_source_language.
 - 
  
    
      #text  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute text.
 
Attributes inherited from Base
Instance Method Summary collapse
- 
  
    
      #initialize(text, detected_source_language, *args)  ⇒ Text 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Text.
 - #to_s ⇒ Object
 
Constructor Details
#initialize(text, detected_source_language, *args) ⇒ Text
Returns a new instance of Text.
      11 12 13 14 15 16  | 
    
      # File 'lib/deepl/resources/text.rb', line 11 def initialize(text, detected_source_language, *args) super(*args) @text = text @detected_source_language = detected_source_language end  | 
  
Instance Attribute Details
#detected_source_language ⇒ Object (readonly)
Returns the value of attribute detected_source_language.
      9 10 11  | 
    
      # File 'lib/deepl/resources/text.rb', line 9 def detected_source_language @detected_source_language end  | 
  
#text ⇒ Object (readonly)
Returns the value of attribute text.
      9 10 11  | 
    
      # File 'lib/deepl/resources/text.rb', line 9 def text @text end  | 
  
Instance Method Details
#to_s ⇒ Object
      18 19 20  | 
    
      # File 'lib/deepl/resources/text.rb', line 18 def to_s text end  |