Class: Google::Apis::ChatV1::GoogleAppsCardV1CardAction
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::GoogleAppsCardV1CardAction
- 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 card action is the action associated with the card. For example, an invoice card might include actions such as delete invoice, email invoice, or open the invoice in a browser. Google Workspace Add-ons:
Instance Attribute Summary collapse
-
#action_label ⇒ String
The label that displays as the action menu item.
-
#on_click ⇒ Google::Apis::ChatV1::GoogleAppsCardV1OnClick
Represents how to respond when users click an interactive element on a card, such as a button.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsCardV1CardAction
constructor
A new instance of GoogleAppsCardV1CardAction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsCardV1CardAction
Returns a new instance of GoogleAppsCardV1CardAction.
1697 1698 1699 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1697 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action_label ⇒ String
The label that displays as the action menu item.
Corresponds to the JSON property actionLabel
1688 1689 1690 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1688 def action_label @action_label end |
#on_click ⇒ Google::Apis::ChatV1::GoogleAppsCardV1OnClick
Represents how to respond when users click an interactive element on a card,
such as a button. Google Workspace Add-ons and Chat apps:
Corresponds to the JSON property onClick
1695 1696 1697 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1695 def on_click @on_click end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1702 1703 1704 1705 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1702 def update!(**args) @action_label = args[:action_label] if args.key?(:action_label) @on_click = args[:on_click] if args.key?(:on_click) end |