Class: Google::Apis::TranslateV2::ListTranslationsResponse
- Inherits:
-
Object
- Object
- Google::Apis::TranslateV2::ListTranslationsResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/translate_v2/classes.rb,
lib/google/apis/translate_v2/representations.rb,
lib/google/apis/translate_v2/representations.rb
Overview
The main language translation response message.
Instance Attribute Summary collapse
-
#translations ⇒ Array<Google::Apis::TranslateV2::TranslationsResource>
Translations contains list of translation results of given text Corresponds to the JSON property
translations
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ListTranslationsResponse
constructor
A new instance of ListTranslationsResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ListTranslationsResponse
Returns a new instance of ListTranslationsResponse.
224 225 226 |
# File 'lib/google/apis/translate_v2/classes.rb', line 224 def initialize(**args) update!(**args) end |
Instance Attribute Details
#translations ⇒ Array<Google::Apis::TranslateV2::TranslationsResource>
Translations contains list of translation results of given text
Corresponds to the JSON property translations
222 223 224 |
# File 'lib/google/apis/translate_v2/classes.rb', line 222 def translations @translations end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
229 230 231 |
# File 'lib/google/apis/translate_v2/classes.rb', line 229 def update!(**args) @translations = args[:translations] if args.key?(:translations) end |