Class: Google::Apis::ChatV1::GoogleAppsCardV1CardAction

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 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. Not supported by Google Chat apps.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsCardV1CardAction

Returns a new instance of GoogleAppsCardV1CardAction.



1280
1281
1282
# File 'lib/google/apis/chat_v1/classes.rb', line 1280

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

Instance Attribute Details

#action_labelString

The label that displays as the action menu item. Corresponds to the JSON property actionLabel

Returns:

  • (String)


1273
1274
1275
# File 'lib/google/apis/chat_v1/classes.rb', line 1273

def action_label
  @action_label
end

#on_clickGoogle::Apis::ChatV1::GoogleAppsCardV1OnClick

Represents the response to an onClick event. Corresponds to the JSON property onClick



1278
1279
1280
# File 'lib/google/apis/chat_v1/classes.rb', line 1278

def on_click
  @on_click
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1285
1286
1287
1288
# File 'lib/google/apis/chat_v1/classes.rb', line 1285

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