Class: Google::Apis::IdeahubV1beta::GoogleSearchIdeahubV1betaTopic

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 a Topic umbrella for a list of questions that a Creator may want to respond to.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleSearchIdeahubV1betaTopic

Returns a new instance of GoogleSearchIdeahubV1betaTopic.



233
234
235
# File 'lib/google/apis/ideahub_v1beta/classes.rb', line 233

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

Instance Attribute Details

#display_nameString

String displayed to the creator indicating the name of the Topic. Corresponds to the JSON property displayName

Returns:

  • (String)


221
222
223
# File 'lib/google/apis/ideahub_v1beta/classes.rb', line 221

def display_name
  @display_name
end

#midString

The mID of the topic. Corresponds to the JSON property mid

Returns:

  • (String)


226
227
228
# File 'lib/google/apis/ideahub_v1beta/classes.rb', line 226

def mid
  @mid
end

#nameString

Unique identifier for the topic. Format: topics/topic Corresponds to the JSON property name

Returns:

  • (String)


231
232
233
# File 'lib/google/apis/ideahub_v1beta/classes.rb', line 231

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



238
239
240
241
242
# File 'lib/google/apis/ideahub_v1beta/classes.rb', line 238

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