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.
8579 8580 8581 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8579 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
8572 8573 8574 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8572 def @image_button end |
#text_button ⇒ Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupTextButton
A button with text and onclick action.
Corresponds to the JSON property textButton
8577 8578 8579 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8577 def @text_button end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8584 8585 8586 8587 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8584 def update!(**args) @image_button = args[:image_button] if args.key?(:image_button) @text_button = args[:text_button] if args.key?(:text_button) end |