class Google::Apis::ChatV1::Button

A button. Can be a text button or an image button.

Attributes

image_button[RW]

An image button with an onclick action. Corresponds to the JSON property `imageButton` @return [Google::Apis::ChatV1::ImageButton]

text_button[RW]

A button with text and onclick action. Corresponds to the JSON property `textButton` @return [Google::Apis::ChatV1::TextButton]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/chat_v1/classes.rb, line 265
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 270
def update!(**args)
  @image_button = args[:image_button] if args.key?(:image_button)
  @text_button = args[:text_button] if args.key?(:text_button)
end