Class: Google::Apis::TranslateV2::ListLanguagesResponse

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) ⇒ ListLanguagesResponse

Returns a new instance of ListLanguagesResponse



103
104
105
# File 'generated/google/apis/translate_v2/classes.rb', line 103

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

Instance Attribute Details

#languagesArray<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



101
102
103
# File 'generated/google/apis/translate_v2/classes.rb', line 101

def languages
  @languages
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



108
109
110
# File 'generated/google/apis/translate_v2/classes.rb', line 108

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