Class: Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaIdea

Inherits:
Object
  • Object
show all
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

A single Idea that we want to show the end user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleSearchIdeahubV1alphaIdea

Returns a new instance of GoogleSearchIdeahubV1alphaIdea.



70
71
72
# File 'lib/google/apis/ideahub_v1alpha/classes.rb', line 70

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

Instance Attribute Details

#nameString

Unique identifier for the idea. Format: ideas/ideaId Corresponds to the JSON property name

Returns:

  • (String)


58
59
60
# File 'lib/google/apis/ideahub_v1alpha/classes.rb', line 58

def name
  @name
end

#textString

The idea’s text. Corresponds to the JSON property text

Returns:

  • (String)


63
64
65
# File 'lib/google/apis/ideahub_v1alpha/classes.rb', line 63

def text
  @text
end

#topicsArray<Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaTopic>

The Topics that match the idea. Corresponds to the JSON property topics



68
69
70
# File 'lib/google/apis/ideahub_v1alpha/classes.rb', line 68

def topics
  @topics
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



75
76
77
78
79
# File 'lib/google/apis/ideahub_v1alpha/classes.rb', line 75

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