Class: Google::Apis::ChatV1::AccessoryWidget

Inherits:
Object
  • Object
show all
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

One or more interactive widgets that appear at the bottom of a message. For details, see Add interactive widgets at the bottom of a message.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AccessoryWidget

Returns a new instance of AccessoryWidget.



74
75
76
# File 'lib/google/apis/chat_v1/classes.rb', line 74

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

Instance Attribute Details

#button_listGoogle::Apis::ChatV1::GoogleAppsCardV1ButtonList

A list of buttons layed out horizontally. For an example in Google Chat apps, see Add a button. Google Workspace Add-ons and Chat apps: Corresponds to the JSON property buttonList



72
73
74
# File 'lib/google/apis/chat_v1/classes.rb', line 72

def button_list
  @button_list
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



79
80
81
# File 'lib/google/apis/chat_v1/classes.rb', line 79

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