Class: Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupTextButton

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb

Overview

A button with text and onclick action.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChatV1WidgetMarkupTextButton

Returns a new instance of GoogleChatV1WidgetMarkupTextButton.



10477
10478
10479
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10477

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

Instance Attribute Details

#on_clickGoogle::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupOnClick

An onclick action (e.g. open a link). Corresponds to the JSON property onClick



10470
10471
10472
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10470

def on_click
  @on_click
end

#textString

The text of the button. Corresponds to the JSON property text

Returns:

  • (String)


10475
10476
10477
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10475

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10482
10483
10484
10485
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10482

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