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

Constructor Details

#initialize(**args) ⇒ Locale

Returns a new instance of Locale.



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

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

Instance Attribute Details

#countryString

The country this blog's locale is set to. Corresponds to the JSON property country

Returns:

  • (String)


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

def country
  @country
end

#languageString

The language this blog is authored in. Corresponds to the JSON property language

Returns:

  • (String)


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

def language
  @language
end

#variantString

The language variant this blog is authored in. Corresponds to the JSON property variant

Returns:

  • (String)


1344
1345
1346
# File 'generated/google/apis/blogger_v3/classes.rb', line 1344

def variant
  @variant
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1351
1352
1353
1354
1355
# File 'generated/google/apis/blogger_v3/classes.rb', line 1351

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