Class: Google::Apis::TranslateV2::ListLanguagesResponse
- Inherits:
-
Object
- Object
- Google::Apis::TranslateV2::ListLanguagesResponse
- 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
-
#languages ⇒ Array<Google::Apis::TranslateV2::LanguagesResource>
List of source/target languages supported by the translation API.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ListLanguagesResponse
constructor
A new instance of ListLanguagesResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ListLanguagesResponse
Returns a new instance of ListLanguagesResponse.
88 89 90 |
# File 'generated/google/apis/translate_v2/classes.rb', line 88 def initialize(**args) update!(**args) end |
Instance Attribute Details
#languages ⇒ Array<Google::Apis::TranslateV2::LanguagesResource>
List of source/target languages supported by the translation API. If target
parameter is unspecified, the list is sorted by the ASCII code point order of
the language code. If target parameter is specified, the list is sorted by the
collation order of the language name in the target language.
Corresponds to the JSON property languages
86 87 88 |
# File 'generated/google/apis/translate_v2/classes.rb', line 86 def languages @languages end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
93 94 95 |
# File 'generated/google/apis/translate_v2/classes.rb', line 93 def update!(**args) @languages = args[:languages] if args.key?(:languages) end |