Class: Google::Apis::ChatV1::FormAction
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ChatV1::FormAction
 
 
- 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
- 
  
    
      #action_method_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Apps Script function to invoke when the containing element is clicked/activated.
 - 
  
    
      #parameters  ⇒ Array<Google::Apis::ChatV1::ActionParameter> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
List of action parameters.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ FormAction 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of FormAction.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ FormAction
Returns a new instance of FormAction
      378 379 380  | 
    
      # File 'generated/google/apis/chat_v1/classes.rb', line 378 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#action_method_name ⇒ String
Apps Script function to invoke when the containing element is
clicked/activated.
Corresponds to the JSON property actionMethodName
      371 372 373  | 
    
      # File 'generated/google/apis/chat_v1/classes.rb', line 371 def action_method_name @action_method_name end  | 
  
#parameters ⇒ Array<Google::Apis::ChatV1::ActionParameter>
List of action parameters.
Corresponds to the JSON property parameters
      376 377 378  | 
    
      # File 'generated/google/apis/chat_v1/classes.rb', line 376 def parameters @parameters end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      383 384 385 386  | 
    
      # File 'generated/google/apis/chat_v1/classes.rb', line 383 def update!(**args) @action_method_name = args[:action_method_name] if args.key?(:action_method_name) @parameters = args[:parameters] if args.key?(:parameters) end  |