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.



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

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)


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

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)


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

def name
  @name
end

#savedBoolean Also known as: saved?

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

Returns:

  • (Boolean)


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

def saved
  @saved
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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