Class: Google::Apis::AdminDirectoryV1::UserLanguage

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

Overview

JSON template for a language entry.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UserLanguage

Returns a new instance of UserLanguage.



4295
4296
4297
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4295

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

Instance Attribute Details

#custom_languageString

Other language. User can provide own language name if there is no corresponding Google III language code. If this is set LanguageCode can't be set Corresponds to the JSON property customLanguage

Returns:

  • (String)


4287
4288
4289
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4287

def custom_language
  @custom_language
end

#language_codeString

Language Code. Should be used for storing Google III LanguageCode string representation for language. Illegal values cause SchemaException. Corresponds to the JSON property languageCode

Returns:

  • (String)


4293
4294
4295
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4293

def language_code
  @language_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4300
4301
4302
4303
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4300

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