class Google::Apis::ChatV1::Image
An image that is specified by a URL and can have an onclick action.
Attributes
aspect_ratio[RW]
The aspect ratio of this image (width/height). This field allows clients to reserve the right height for the image while waiting for it to load. It's not meant to override the native aspect ratio of the image. If unset, the server fills it by prefetching the image. Corresponds to the JSON property `aspectRatio` @return [Float]
image_url[RW]
The URL of the image. Corresponds to the JSON property `imageUrl` @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 2106 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 2111 def update!(**args) @aspect_ratio = args[:aspect_ratio] if args.key?(:aspect_ratio) @image_url = args[:image_url] if args.key?(:image_url) @on_click = args[:on_click] if args.key?(:on_click) end