Class: Google::Apis::BloggerV2::User::Locale

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

Overview

This user's locale

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

Returns a new instance of Locale



933
934
935
# File 'generated/google/apis/blogger_v2/classes.rb', line 933

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

Instance Attribute Details

#countryString

The user's country setting. Corresponds to the JSON property country

Returns:

  • (String)


921
922
923
# File 'generated/google/apis/blogger_v2/classes.rb', line 921

def country
  @country
end

#languageString

The user's language setting. Corresponds to the JSON property language

Returns:

  • (String)


926
927
928
# File 'generated/google/apis/blogger_v2/classes.rb', line 926

def language
  @language
end

#variantString

The user's language variant setting. Corresponds to the JSON property variant

Returns:

  • (String)


931
932
933
# File 'generated/google/apis/blogger_v2/classes.rb', line 931

def variant
  @variant
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



938
939
940
941
942
# File 'generated/google/apis/blogger_v2/classes.rb', line 938

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