Class: Google::Apis::IdeahubV1beta::GoogleSearchIdeahubV1betaTopicState

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 topic state specific to a web property.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleSearchIdeahubV1betaTopicState

Returns a new instance of GoogleSearchIdeahubV1betaTopicState.



267
268
269
# File 'lib/google/apis/ideahub_v1beta/classes.rb', line 267

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

Instance Attribute Details

#dismissedBoolean Also known as: dismissed?

Whether the topic is dismissed. Corresponds to the JSON property dismissed

Returns:

  • (Boolean)


252
253
254
# File 'lib/google/apis/ideahub_v1beta/classes.rb', line 252

def dismissed
  @dismissed
end

#nameString

Unique identifier for the topic state. Format: platforms/platform/properties/ property/topicStates/topic_state Corresponds to the JSON property name

Returns:

  • (String)


259
260
261
# File 'lib/google/apis/ideahub_v1beta/classes.rb', line 259

def name
  @name
end

#savedBoolean Also known as: saved?

Whether the topic is saved. Corresponds to the JSON property saved

Returns:

  • (Boolean)


264
265
266
# File 'lib/google/apis/ideahub_v1beta/classes.rb', line 264

def saved
  @saved
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



272
273
274
275
276
# File 'lib/google/apis/ideahub_v1beta/classes.rb', line 272

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