Class: Google::Apis::CloudsearchV1::ActionParameter

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb

Overview

List of string parameters that developers can specify when the above action method (in apps script) is invoked. An example use case is for 3 snooze buttons: snooze now, snooze 1 day, snooze next week. Developers can have action method = snooze() and pass the snooze type and snooze time in list of string parameters.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ActionParameter

Returns a new instance of ActionParameter.



209
210
211
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 209

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

Instance Attribute Details

#keyString

Corresponds to the JSON property key

Returns:

  • (String)


202
203
204
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 202

def key
  @key
end

#valueString

Corresponds to the JSON property value

Returns:

  • (String)


207
208
209
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 207

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



214
215
216
217
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 214

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