Class: Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaIdeaActivity

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

An idea activity entry.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleSearchIdeahubV1alphaIdeaActivity

Returns a new instance of GoogleSearchIdeahubV1alphaIdeaActivity.



112
113
114
# File 'lib/google/apis/ideahub_v1alpha/classes.rb', line 112

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

Instance Attribute Details

#ideasArray<String>

The Idea IDs for this entry. Corresponds to the JSON property ideas

Returns:

  • (Array<String>)


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

def ideas
  @ideas
end

#nameString

Unique identifier for the idea activity. Format: platforms/platform/ properties/property/ideaActivities/idea_activity Corresponds to the JSON property name

Returns:

  • (String)


95
96
97
# File 'lib/google/apis/ideahub_v1alpha/classes.rb', line 95

def name
  @name
end

#topicsArray<String>

The Topic IDs for this entry. Corresponds to the JSON property topics

Returns:

  • (Array<String>)


100
101
102
# File 'lib/google/apis/ideahub_v1alpha/classes.rb', line 100

def topics
  @topics
end

#typeString

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

Returns:

  • (String)


105
106
107
# File 'lib/google/apis/ideahub_v1alpha/classes.rb', line 105

def type
  @type
end

#uriString

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

Returns:

  • (String)


110
111
112
# File 'lib/google/apis/ideahub_v1alpha/classes.rb', line 110

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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