Class: Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupTextButton
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupTextButton
- 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
-
#on_click ⇒ Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupOnClick
An onclick action (e.g. open a link).
-
#text ⇒ String
The text of the button.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleChatV1WidgetMarkupTextButton
constructor
A new instance of GoogleChatV1WidgetMarkupTextButton.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleChatV1WidgetMarkupTextButton
Returns a new instance of GoogleChatV1WidgetMarkupTextButton.
10042 10043 10044 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10042 def initialize(**args) update!(**args) end |
Instance Attribute Details
#on_click ⇒ Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupOnClick
An onclick action (e.g. open a link).
Corresponds to the JSON property onClick
10035 10036 10037 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10035 def on_click @on_click end |
#text ⇒ String
The text of the button.
Corresponds to the JSON property text
10040 10041 10042 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10040 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10047 10048 10049 10050 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10047 def update!(**args) @on_click = args[:on_click] if args.key?(:on_click) @text = args[:text] if args.key?(:text) end |