Class: Google::Apis::BloggerV3::User::Locale

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/blogger_v3/classes.rb,
generated/google/apis/blogger_v3/representations.rb,
generated/google/apis/blogger_v3/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.



1340
1341
1342
# File 'generated/google/apis/blogger_v3/classes.rb', line 1340

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

Instance Attribute Details

#countryString

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

Returns:

  • (String)


1328
1329
1330
# File 'generated/google/apis/blogger_v3/classes.rb', line 1328

def country
  @country
end

#languageString

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

Returns:

  • (String)


1333
1334
1335
# File 'generated/google/apis/blogger_v3/classes.rb', line 1333

def language
  @language
end

#variantString

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

Returns:

  • (String)


1338
1339
1340
# File 'generated/google/apis/blogger_v3/classes.rb', line 1338

def variant
  @variant
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1345
1346
1347
1348
1349
# File 'generated/google/apis/blogger_v3/classes.rb', line 1345

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