Class: Google::Apis::ChatV1::GoogleAppsCardV1ActionParameter
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::GoogleAppsCardV1ActionParameter
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/chat_v1/classes.rb,
lib/google/apis/chat_v1/representations.rb,
lib/google/apis/chat_v1/representations.rb
Overview
List of string parameters to supply when the action method is invoked. For
example, consider three snooze buttons: snooze now, snooze one day, or snooze
next week. You might use action method = snooze()
, passing the snooze type
and snooze time in the list of string parameters. To learn more, see
CommonEventObject
. Google Workspace Add-ons and Chat apps:
Instance Attribute Summary collapse
-
#key ⇒ String
The name of the parameter for the action script.
-
#value ⇒ String
The value of the parameter.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsCardV1ActionParameter
constructor
A new instance of GoogleAppsCardV1ActionParameter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsCardV1ActionParameter
Returns a new instance of GoogleAppsCardV1ActionParameter.
1336 1337 1338 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1336 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key ⇒ String
The name of the parameter for the action script.
Corresponds to the JSON property key
1329 1330 1331 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1329 def key @key end |
#value ⇒ String
The value of the parameter.
Corresponds to the JSON property value
1334 1335 1336 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1334 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1341 1342 1343 1344 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1341 def update!(**args) @key = args[:key] if args.key?(:key) @value = args[:value] if args.key?(:value) end |