Class: Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaTopicState
- Inherits:
-
Object
- Object
- Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaTopicState
- 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 topic state specific to a web property.
Instance Attribute Summary collapse
-
#dismissed ⇒ Boolean
(also: #dismissed?)
Whether the topic is dismissed.
-
#name ⇒ String
Unique identifier for the topic state.
-
#saved ⇒ Boolean
(also: #saved?)
Whether the topic is saved.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleSearchIdeahubV1alphaTopicState
constructor
A new instance of GoogleSearchIdeahubV1alphaTopicState.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleSearchIdeahubV1alphaTopicState
Returns a new instance of GoogleSearchIdeahubV1alphaTopicState.
216 217 218 |
# File 'lib/google/apis/ideahub_v1alpha/classes.rb', line 216 def initialize(**args) update!(**args) end |
Instance Attribute Details
#dismissed ⇒ Boolean Also known as: dismissed?
Whether the topic is dismissed.
Corresponds to the JSON property dismissed
201 202 203 |
# File 'lib/google/apis/ideahub_v1alpha/classes.rb', line 201 def dismissed @dismissed end |
#name ⇒ String
Unique identifier for the topic state. Format: platforms/platform/properties/
property/topicStates/topic_state
Corresponds to the JSON property name
208 209 210 |
# File 'lib/google/apis/ideahub_v1alpha/classes.rb', line 208 def name @name end |
#saved ⇒ Boolean Also known as: saved?
Whether the topic is saved.
Corresponds to the JSON property saved
213 214 215 |
# File 'lib/google/apis/ideahub_v1alpha/classes.rb', line 213 def saved @saved end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
221 222 223 224 225 |
# File 'lib/google/apis/ideahub_v1alpha/classes.rb', line 221 def update!(**args) @dismissed = args[:dismissed] if args.key?(:dismissed) @name = args[:name] if args.key?(:name) @saved = args[:saved] if args.key?(:saved) end |