Class: Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaIdea
- Inherits:
-
Object
- Object
- Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaIdea
- 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
-
#name ⇒ String
Unique identifier for the idea.
-
#text ⇒ String
The idea’s text.
-
#topics ⇒ Array<Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaTopic>
The Topics that match the idea.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleSearchIdeahubV1alphaIdea
constructor
A new instance of GoogleSearchIdeahubV1alphaIdea.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#name ⇒ String
Unique identifier for the idea. Format: ideas/ideaId
Corresponds to the JSON property name
58 59 60 |
# File 'lib/google/apis/ideahub_v1alpha/classes.rb', line 58 def name @name end |
#text ⇒ String
The idea’s text.
Corresponds to the JSON property text
63 64 65 |
# File 'lib/google/apis/ideahub_v1alpha/classes.rb', line 63 def text @text end |
#topics ⇒ Array<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 |