class Google::Apis::ChatV1::FormAction

A form action describes the behavior when the form is submitted. For example, an Apps Script can be invoked to handle the form.

Attributes

action_method_name[RW]

The method name is used to identify which part of the form triggered the form submission. This information is echoed back to the bot as part of the card click event. The same method name can be used for several elements that trigger a common behavior if desired. Corresponds to the JSON property `actionMethodName` @return [String]

parameters[RW]

List of action parameters. Corresponds to the JSON property `parameters` @return [Array<Google::Apis::ChatV1::ActionParameter>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/chat_v1/classes.rb, line 793
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/chat_v1/classes.rb, line 798
def update!(**args)
  @action_method_name = args[:action_method_name] if args.key?(:action_method_name)
  @parameters = args[:parameters] if args.key?(:parameters)
end