Class: Google::Cloud::Translate::Language
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Cloud::Translate::Language
 
 
- Defined in:
 - lib/google/cloud/translate/language.rb
 
Overview
Language
Represents a supported languages query result. Returned by Api#languages.
Instance Attribute Summary collapse
- 
  
    
      #code  ⇒ String 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The language code.
 - 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The localized name of the language, if available.
 
Instance Attribute Details
#code ⇒ String (readonly)
The language code. This is an ISO 639-1 language code.
      46 47 48  | 
    
      # File 'lib/google/cloud/translate/language.rb', line 46 def code @code end  | 
  
#name ⇒ String (readonly)
The localized name of the language, if available.
      52 53 54  | 
    
      # File 'lib/google/cloud/translate/language.rb', line 52 def name @name end  |