class Google::Apis::ChatV1::ImageButton
An image button with an onclick action.
Attributes
icon[RW]
The icon specified by an enum that indices to an icon provided by Chat API. Corresponds to the JSON property `icon` @return [String]
icon_url[RW]
The icon specified by a URL. Corresponds to the JSON property `iconUrl` @return [String]
name[RW]
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` @return [String]
on_click[RW]
An onclick action (e.g. open a link). Corresponds to the JSON property `onClick` @return [Google::Apis::ChatV1::OnClick]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/chat_v1/classes.rb, line 2143 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/chat_v1/classes.rb, line 2148 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