Class: Google::Apis::TranslateV3::GlossaryTermsPair
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::TranslateV3::GlossaryTermsPair
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - lib/google/apis/translate_v3/classes.rb,
lib/google/apis/translate_v3/representations.rb,
lib/google/apis/translate_v3/representations.rb 
Overview
Represents a single entry for an unidirectional glossary.
Instance Attribute Summary collapse
- 
  
    
      #source_term  ⇒ Google::Apis::TranslateV3::GlossaryTerm 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Represents a single glossary term Corresponds to the JSON property
sourceTerm. - 
  
    
      #target_term  ⇒ Google::Apis::TranslateV3::GlossaryTerm 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Represents a single glossary term Corresponds to the JSON property
targetTerm. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ GlossaryTermsPair 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of GlossaryTermsPair.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ GlossaryTermsPair
Returns a new instance of GlossaryTermsPair.
      1172 1173 1174  | 
    
      # File 'lib/google/apis/translate_v3/classes.rb', line 1172 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#source_term ⇒ Google::Apis::TranslateV3::GlossaryTerm
Represents a single glossary term
Corresponds to the JSON property sourceTerm
      1165 1166 1167  | 
    
      # File 'lib/google/apis/translate_v3/classes.rb', line 1165 def source_term @source_term end  | 
  
#target_term ⇒ Google::Apis::TranslateV3::GlossaryTerm
Represents a single glossary term
Corresponds to the JSON property targetTerm
      1170 1171 1172  | 
    
      # File 'lib/google/apis/translate_v3/classes.rb', line 1170 def target_term @target_term end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      1177 1178 1179 1180  | 
    
      # File 'lib/google/apis/translate_v3/classes.rb', line 1177 def update!(**args) @source_term = args[:source_term] if args.key?(:source_term) @target_term = args[:target_term] if args.key?(:target_term) end  |