class Google::Apis::ChatV1::TextButton

A button with text and onclick action.

Attributes

on_click[RW]

An onclick action (e.g. open a link). Corresponds to the JSON property `onClick` @return [Google::Apis::ChatV1::OnClick]

text[RW]

The text of the button. Corresponds to the JSON property `text` @return [String]

Public Class Methods

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