Class: Google::Apis::TranslateV3::TransliterationConfig
- Inherits:
-
Object
- Object
- Google::Apis::TranslateV3::TransliterationConfig
- 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
Configures transliteration feature on top of translation.
Instance Attribute Summary collapse
-
#enable_transliteration ⇒ Boolean
(also: #enable_transliteration?)
If true, source text in romanized form can be translated to the target language.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TransliterationConfig
constructor
A new instance of TransliterationConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TransliterationConfig
Returns a new instance of TransliterationConfig.
2434 2435 2436 |
# File 'lib/google/apis/translate_v3/classes.rb', line 2434 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enable_transliteration ⇒ Boolean Also known as: enable_transliteration?
If true, source text in romanized form can be translated to the target
language.
Corresponds to the JSON property enableTransliteration
2431 2432 2433 |
# File 'lib/google/apis/translate_v3/classes.rb', line 2431 def enable_transliteration @enable_transliteration end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2439 2440 2441 |
# File 'lib/google/apis/translate_v3/classes.rb', line 2439 def update!(**args) @enable_transliteration = args[:enable_transliteration] if args.key?(:enable_transliteration) end |