Class: Google::Apis::GmailV1::LanguageSettings

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

Overview

Language settings for an account. These settings correspond to the "Language settings" feature in the web interface.

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

Returns a new instance of LanguageSettings.



665
666
667
# File 'generated/google/apis/gmail_v1/classes.rb', line 665

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

Instance Attribute Details

#display_languageString

The language to display Gmail in, formatted as an RFC 3066 Language Tag (for example en-GB, fr or ja for British English, French, or Japanese respectively). The set of languages supported by Gmail evolves over time, so please refer to the "Language" dropdown in the Gmail settings for all available options, as described in the language settings help article. A table of sample values is also provided in the Managing Language Settings guide Not all Gmail clients can display the same set of languages. In the case that a user's display language is not available for use on a particular client, said client automatically chooses to display in the closest supported variant ( or a reasonable default). Corresponds to the JSON property displayLanguage

Returns:

  • (String)


663
664
665
# File 'generated/google/apis/gmail_v1/classes.rb', line 663

def display_language
  @display_language
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



670
671
672
# File 'generated/google/apis/gmail_v1/classes.rb', line 670

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