Class: Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupButton
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupButton
- 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. Can be a text button or an image button.
Instance Attribute Summary collapse
-
#image_button ⇒ Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupImageButton
An image button with an
onclick
action. -
#text_button ⇒ Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupTextButton
A button with text and
onclick
action.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleChatV1WidgetMarkupButton
constructor
A new instance of GoogleChatV1WidgetMarkupButton.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleChatV1WidgetMarkupButton
Returns a new instance of GoogleChatV1WidgetMarkupButton.
10277 10278 10279 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10277 def initialize(**args) update!(**args) end |
Instance Attribute Details
#image_button ⇒ Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupImageButton
An image button with an onclick
action.
Corresponds to the JSON property imageButton
10270 10271 10272 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10270 def @image_button end |
#text_button ⇒ Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupTextButton
A button with text and onclick
action.
Corresponds to the JSON property textButton
10275 10276 10277 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10275 def @text_button end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10282 10283 10284 10285 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10282 def update!(**args) @image_button = args[:image_button] if args.key?(:image_button) @text_button = args[:text_button] if args.key?(:text_button) end |