Class: Google::Apis::IdeahubV1beta::GoogleSearchIdeahubV1betaAvailableLocale
- Inherits:
-
Object
- Object
- Google::Apis::IdeahubV1beta::GoogleSearchIdeahubV1betaAvailableLocale
- 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
-
#locale ⇒ String
A string in BCP 47 format, without a resource prefix.
-
#name ⇒ String
A string in BCP 47 format, prefixed with the platform and property name, and " locales/".
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleSearchIdeahubV1betaAvailableLocale
constructor
A new instance of GoogleSearchIdeahubV1betaAvailableLocale.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#locale ⇒ String
A string in BCP 47 format, without a resource prefix.
Corresponds to the JSON property locale
32 33 34 |
# File 'lib/google/apis/ideahub_v1beta/classes.rb', line 32 def locale @locale end |
#name ⇒ String
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
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 |