Class: Google::Apis::TranslateV2::ListTranslationsResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/translate_v2/classes.rb,
generated/google/apis/translate_v2/representations.rb,
generated/google/apis/translate_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ListTranslationsResponse

Returns a new instance of ListTranslationsResponse.


132
133
134
# File 'generated/google/apis/translate_v2/classes.rb', line 132

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#translationsArray<Google::Apis::TranslateV2::TranslationsResource>

Translations contains list of translation results of given text Corresponds to the JSON property translations


130
131
132
# File 'generated/google/apis/translate_v2/classes.rb', line 130

def translations
  @translations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


137
138
139
# File 'generated/google/apis/translate_v2/classes.rb', line 137

def update!(**args)
  @translations = args[:translations] if args.key?(:translations)
end