Class: Google::Apis::ChatV1::FormAction

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ FormAction

Returns a new instance of FormAction



302
303
304
# File 'generated/google/apis/chat_v1/classes.rb', line 302

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

Instance Attribute Details

#action_method_nameString

Apps Script function to invoke when the containing element is clicked/activated. Corresponds to the JSON property actionMethodName

Returns:

  • (String)


295
296
297
# File 'generated/google/apis/chat_v1/classes.rb', line 295

def action_method_name
  @action_method_name
end

#parametersArray<Google::Apis::ChatV1::ActionParameter>

List of action parameters. Corresponds to the JSON property parameters



300
301
302
# File 'generated/google/apis/chat_v1/classes.rb', line 300

def parameters
  @parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



307
308
309
310
# File 'generated/google/apis/chat_v1/classes.rb', line 307

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