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.
2404 2405 2406 |
# File 'lib/google/apis/translate_v3/classes.rb', line 2404 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
2401 2402 2403 |
# File 'lib/google/apis/translate_v3/classes.rb', line 2401 def enable_transliteration @enable_transliteration end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2409 2410 2411 |
# File 'lib/google/apis/translate_v3/classes.rb', line 2409 def update!(**args) @enable_transliteration = args[:enable_transliteration] if args.key?(:enable_transliteration) end |