Class: Google::Apis::IdeahubV1alpha::GoogleSearchIdeahubV1alphaIdeaState

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

Represents idea state specific to a web property.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleSearchIdeahubV1alphaIdeaState

Returns a new instance of GoogleSearchIdeahubV1alphaIdeaState.



148
149
150
# File 'lib/google/apis/ideahub_v1alpha/classes.rb', line 148

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

Instance Attribute Details

#dismissedBoolean Also known as: dismissed?

Whether the idea is dismissed. Corresponds to the JSON property dismissed

Returns:

  • (Boolean)


133
134
135
# File 'lib/google/apis/ideahub_v1alpha/classes.rb', line 133

def dismissed
  @dismissed
end

#nameString

Unique identifier for the idea state. Format: platforms/platform/properties/ property/ideaStates/idea_state Corresponds to the JSON property name

Returns:

  • (String)


140
141
142
# File 'lib/google/apis/ideahub_v1alpha/classes.rb', line 140

def name
  @name
end

#savedBoolean Also known as: saved?

Whether the idea is saved. Corresponds to the JSON property saved

Returns:

  • (Boolean)


145
146
147
# File 'lib/google/apis/ideahub_v1alpha/classes.rb', line 145

def saved
  @saved
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



153
154
155
156
157
# File 'lib/google/apis/ideahub_v1alpha/classes.rb', line 153

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