Class: Google::Apis::IdeahubV1beta::GoogleSearchIdeahubV1betaAvailableLocale

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

Overview

Represents locales that are available for a web property.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleSearchIdeahubV1betaAvailableLocale

Returns a new instance of GoogleSearchIdeahubV1betaAvailableLocale.



40
41
42
# File 'lib/google/apis/ideahub_v1beta/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_v1beta/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_v1beta/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_v1beta/classes.rb', line 45

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