Class: Google::Apis::CloudsearchV1::ActionParameter
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::ActionParameter
- 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
-
#key ⇒ String
Corresponds to the JSON property
key
. -
#value ⇒ String
Corresponds to the JSON property
value
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ActionParameter
constructor
A new instance of ActionParameter.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#key ⇒ String
Corresponds to the JSON property key
202 203 204 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 202 def key @key end |
#value ⇒ String
Corresponds to the JSON property value
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 |