Class: Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaAvailableLocale

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/ideahub_v1alpha/classes.rb,
lib/google/apis/ideahub_v1alpha/representations.rb,
lib/google/apis/ideahub_v1alpha/representations.rb

Overview

Represents locales that are available for a web property.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleSearchIdeahubV1alphaAvailableLocale

Returns a new instance of GoogleSearchIdeahubV1alphaAvailableLocale.



40
41
42
# File 'lib/google/apis/ideahub_v1alpha/classes.rb', line 40

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

Instance Attribute Details

#localeString

A string in BCP 47 format, without a resource prefix. Corresponds to the JSON property locale

Returns:

  • (String)


32
33
34
# File 'lib/google/apis/ideahub_v1alpha/classes.rb', line 32

def locale
  @locale
end

#nameString

A string in BCP 47 format, prefixed with the platform and property name, and " locales/". Format: platforms/platform/properties/property/locales/locale Corresponds to the JSON property name

Returns:

  • (String)


38
39
40
# File 'lib/google/apis/ideahub_v1alpha/classes.rb', line 38

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



45
46
47
48
# File 'lib/google/apis/ideahub_v1alpha/classes.rb', line 45

def update!(**args)
  @locale = args[:locale] if args.key?(:locale)
  @name = args[:name] if args.key?(:name)
end