Class: Google::Apis::IdeahubV1beta::GoogleSearchIdeahubV1betaIdeaActivity

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

An idea activity entry.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleSearchIdeahubV1betaIdeaActivity

Returns a new instance of GoogleSearchIdeahubV1betaIdeaActivity.



113
114
115
# File 'lib/google/apis/ideahub_v1beta/classes.rb', line 113

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

Instance Attribute Details

#ideasArray<String>

The Idea IDs for this entry. If empty, topics should be set. Corresponds to the JSON property ideas

Returns:

  • (Array<String>)


89
90
91
# File 'lib/google/apis/ideahub_v1beta/classes.rb', line 89

def ideas
  @ideas
end

#nameString

Unique identifier for the idea activity. The name is ignored when creating an idea activity. Format: platforms/platform/properties/property/ ideaActivities/idea_activity Corresponds to the JSON property name

Returns:

  • (String)


96
97
98
# File 'lib/google/apis/ideahub_v1beta/classes.rb', line 96

def name
  @name
end

#topicsArray<String>

The Topic IDs for this entry. If empty, ideas should be set. Corresponds to the JSON property topics

Returns:

  • (Array<String>)


101
102
103
# File 'lib/google/apis/ideahub_v1beta/classes.rb', line 101

def topics
  @topics
end

#typeString

The type of activity performed. Corresponds to the JSON property type

Returns:

  • (String)


106
107
108
# File 'lib/google/apis/ideahub_v1beta/classes.rb', line 106

def type
  @type
end

#uriString

The uri the activity relates to. Corresponds to the JSON property uri

Returns:

  • (String)


111
112
113
# File 'lib/google/apis/ideahub_v1beta/classes.rb', line 111

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



118
119
120
121
122
123
124
# File 'lib/google/apis/ideahub_v1beta/classes.rb', line 118

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