Class: Google::Apis::ChatV1::GoogleAppsCardV1OverflowMenuItem

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

An option that users can invoke in an overflow menu. Google Chat apps:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsCardV1OverflowMenuItem

Returns a new instance of GoogleAppsCardV1OverflowMenuItem.



2728
2729
2730
# File 'lib/google/apis/chat_v1/classes.rb', line 2728

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

Instance Attribute Details

#disabledBoolean Also known as: disabled?

Whether the menu option is disabled. Defaults to false. Corresponds to the JSON property disabled

Returns:

  • (Boolean)


2702
2703
2704
# File 'lib/google/apis/chat_v1/classes.rb', line 2702

def disabled
  @disabled
end

#on_clickGoogle::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



2710
2711
2712
# File 'lib/google/apis/chat_v1/classes.rb', line 2710

def on_click
  @on_click
end

#start_iconGoogle::Apis::ChatV1::GoogleAppsCardV1Icon

An icon displayed in a widget on a card. For an example in Google Chat apps, see Add an icon. Supports built-in and custom icons. Google Workspace Add-ons and Chat apps: Corresponds to the JSON property startIcon



2721
2722
2723
# File 'lib/google/apis/chat_v1/classes.rb', line 2721

def start_icon
  @start_icon
end

#textString

Required. The text that identifies or describes the item to users. Corresponds to the JSON property text

Returns:

  • (String)


2726
2727
2728
# File 'lib/google/apis/chat_v1/classes.rb', line 2726

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2733
2734
2735
2736
2737
2738
# File 'lib/google/apis/chat_v1/classes.rb', line 2733

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