class Google::Apis::ChatV1::CardAction
A card action is the action associated with the card. For an invoice card, a typical action would be: delete invoice, email invoice or open the invoice in browser.
Attributes
action_label[RW]
The label used to be displayed in the action menu item. Corresponds to the JSON property `actionLabel` @return [String]
on_click[RW]
An onclick action (e.g. open a link). Corresponds to the JSON property `onClick` @return [Google::Apis::ChatV1::OnClick]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/chat_v1/classes.rb, line 329 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/chat_v1/classes.rb, line 334 def update!(**args) @action_label = args[:action_label] if args.key?(:action_label) @on_click = args[:on_click] if args.key?(:on_click) end