Class: Google::Apis::BloggerV2::Blog::Locale
- Inherits:
-
Object
- Object
- Google::Apis::BloggerV2::Blog::Locale
- 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
The locale this Blog is set to.
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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Locale
Returns a new instance of Locale
122 123 124 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 122 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
110 111 112 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 110 def country @country end |
#language ⇒ String
The language this blog is authored in.
Corresponds to the JSON property language
115 116 117 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 115 def language @language end |
#variant ⇒ String
The language variant this blog is authored in.
Corresponds to the JSON property variant
120 121 122 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 120 def variant @variant end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
127 128 129 130 131 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 127 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 |