Class: Google::Apis::ChatV1::GoogleAppsCardV1CardFixedFooter

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

A persistent (sticky) footer that that appears at the bottom of the card. Setting fixedFooter without specifying a primaryButton or a secondaryButton causes an error. Chat apps support fixedFooter in dialogs, but not in card messages.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsCardV1CardFixedFooter

Returns a new instance of GoogleAppsCardV1CardFixedFooter.



1359
1360
1361
# File 'lib/google/apis/chat_v1/classes.rb', line 1359

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

Instance Attribute Details

#primary_buttonGoogle::Apis::ChatV1::GoogleAppsCardV1Button

A text, icon, or text + icon button that users can click. To make an image a clickable button, specify an Image (not an ImageComponent) and set an onClick action. Currently supported in Chat apps (including dialogs and card messages) and Google Workspace Add-ons. Corresponds to the JSON property primaryButton



1347
1348
1349
# File 'lib/google/apis/chat_v1/classes.rb', line 1347

def primary_button
  @primary_button
end

#secondary_buttonGoogle::Apis::ChatV1::GoogleAppsCardV1Button

A text, icon, or text + icon button that users can click. To make an image a clickable button, specify an Image (not an ImageComponent) and set an onClick action. Currently supported in Chat apps (including dialogs and card messages) and Google Workspace Add-ons. Corresponds to the JSON property secondaryButton



1357
1358
1359
# File 'lib/google/apis/chat_v1/classes.rb', line 1357

def secondary_button
  @secondary_button
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1364
1365
1366
1367
# File 'lib/google/apis/chat_v1/classes.rb', line 1364

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