Class: Google::Apis::BloggerV3::User::Locale
- Inherits:
-
Object
- Object
- Google::Apis::BloggerV3::User::Locale
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/blogger_v3/classes.rb,
lib/google/apis/blogger_v3/representations.rb,
lib/google/apis/blogger_v3/representations.rb
Overview
This user's locale
Instance Attribute Summary collapse
-
#country ⇒ String
The country this blog's locale is set to.
-
#language ⇒ String
The language this blog is authored in.
-
#variant ⇒ String
The language variant this blog is authored in.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Locale
constructor
A new instance of Locale.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Locale
Returns a new instance of Locale.
1358 1359 1360 |
# File 'lib/google/apis/blogger_v3/classes.rb', line 1358 def initialize(**args) update!(**args) end |
Instance Attribute Details
#country ⇒ String
The country this blog's locale is set to.
Corresponds to the JSON property country
1346 1347 1348 |
# File 'lib/google/apis/blogger_v3/classes.rb', line 1346 def country @country end |
#language ⇒ String
The language this blog is authored in.
Corresponds to the JSON property language
1351 1352 1353 |
# File 'lib/google/apis/blogger_v3/classes.rb', line 1351 def language @language end |
#variant ⇒ String
The language variant this blog is authored in.
Corresponds to the JSON property variant
1356 1357 1358 |
# File 'lib/google/apis/blogger_v3/classes.rb', line 1356 def variant @variant end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1363 1364 1365 1366 1367 |
# File 'lib/google/apis/blogger_v3/classes.rb', line 1363 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 |