Class: Google::Apis::TranslateV3::GlossaryTerm
- Inherits:
-
Object
- Object
- Google::Apis::TranslateV3::GlossaryTerm
- 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 glossary term
Instance Attribute Summary collapse
-
#language_code ⇒ String
The language for this glossary term.
-
#text ⇒ String
The text for the glossary term.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GlossaryTerm
constructor
A new instance of GlossaryTerm.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GlossaryTerm
Returns a new instance of GlossaryTerm.
1117 1118 1119 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1117 def initialize(**args) update!(**args) end |
Instance Attribute Details
#language_code ⇒ String
The language for this glossary term.
Corresponds to the JSON property languageCode
1110 1111 1112 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1110 def language_code @language_code end |
#text ⇒ String
The text for the glossary term.
Corresponds to the JSON property text
1115 1116 1117 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1115 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1122 1123 1124 1125 |
# File 'lib/google/apis/translate_v3/classes.rb', line 1122 def update!(**args) @language_code = args[:language_code] if args.key?(:language_code) @text = args[:text] if args.key?(:text) end |