class Google::Apis::TranslateV2::LanguagesResource
Attributes
language[RW]
Supported language code, generally consisting of its ISO 639-1 identifier. (E.g. 'en', 'ja'). In certain cases, BCP-47 codes including language + region identifiers are returned (e.g. 'zh-TW' and 'zh-CH') Corresponds to the JSON property `language` @return [String]
name[RW]
Human readable name of the language localized to the target language. Corresponds to the JSON property `name` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/translate_v2/classes.rb, line 154 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/translate_v2/classes.rb, line 159 def update!(**args) @language = args[:language] if args.key?(:language) @name = args[:name] if args.key?(:name) end