Class: Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupImageButton
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupImageButton
- 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
An image button with an onclick action.
Instance Attribute Summary collapse
-
#icon ⇒ String
The icon specified by an enum that indices to an icon provided by Chat API.
-
#icon_url ⇒ String
The icon specified by a URL.
-
#name ⇒ String
The name of this image_button which will be used for accessibility.
-
#on_click ⇒ Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupOnClick
An onclick action (e.g. open a link).
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleChatV1WidgetMarkupImageButton
constructor
A new instance of GoogleChatV1WidgetMarkupImageButton.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleChatV1WidgetMarkupImageButton
Returns a new instance of GoogleChatV1WidgetMarkupImageButton.
9868 9869 9870 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9868 def initialize(**args) update!(**args) end |
Instance Attribute Details
#icon ⇒ String
The icon specified by an enum that indices to an icon provided by Chat API.
Corresponds to the JSON property icon
9850 9851 9852 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9850 def icon @icon end |
#icon_url ⇒ String
The icon specified by a URL.
Corresponds to the JSON property iconUrl
9855 9856 9857 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9855 def icon_url @icon_url end |
#name ⇒ String
The name of this image_button which will be used for accessibility. Default
value will be provided if developers don't specify.
Corresponds to the JSON property name
9861 9862 9863 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9861 def name @name end |
#on_click ⇒ Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupOnClick
An onclick action (e.g. open a link).
Corresponds to the JSON property onClick
9866 9867 9868 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9866 def on_click @on_click end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9873 9874 9875 9876 9877 9878 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9873 def update!(**args) @icon = args[:icon] if args.key?(:icon) @icon_url = args[:icon_url] if args.key?(:icon_url) @name = args[:name] if args.key?(:name) @on_click = args[:on_click] if args.key?(:on_click) end |