Class: Google::Apis::BloggerV3::Blog::Locale

Inherits:
Object
  • Object
show all
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

The locale this Blog is set to.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Locale

Returns a new instance of Locale.



134
135
136
# File 'lib/google/apis/blogger_v3/classes.rb', line 134

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)


122
123
124
# File 'lib/google/apis/blogger_v3/classes.rb', line 122

def country
  @country
end

#languageString

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

Returns:

  • (String)


127
128
129
# File 'lib/google/apis/blogger_v3/classes.rb', line 127

def language
  @language
end

#variantString

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

Returns:

  • (String)


132
133
134
# File 'lib/google/apis/blogger_v3/classes.rb', line 132

def variant
  @variant
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



139
140
141
142
143
# File 'lib/google/apis/blogger_v3/classes.rb', line 139

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