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

Constructor Details

#initialize(**args) ⇒ Locale

Returns a new instance of Locale.



1184
1185
1186
# File 'generated/google/apis/blogger_v2/classes.rb', line 1184

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)


1172
1173
1174
# File 'generated/google/apis/blogger_v2/classes.rb', line 1172

def country
  @country
end

#languageString

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

Returns:

  • (String)


1177
1178
1179
# File 'generated/google/apis/blogger_v2/classes.rb', line 1177

def language
  @language
end

#variantString

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

Returns:

  • (String)


1182
1183
1184
# File 'generated/google/apis/blogger_v2/classes.rb', line 1182

def variant
  @variant
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1189
1190
1191
1192
1193
# File 'generated/google/apis/blogger_v2/classes.rb', line 1189

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