class Google::Apis::ChatV1::GoogleAppsCardV1Image

An image that is specified by a URL and can have an onClick action.

Attributes

alt_text[RW]

The alternative text of this image, used for accessibility. Corresponds to the JSON property `altText` @return [String]

image_url[RW]

An image URL. Corresponds to the JSON property `imageUrl` @return [String]

on_click[RW]

Corresponds to the JSON property `onClick` @return [Google::Apis::ChatV1::GoogleAppsCardV1OnClick]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/chat_v1/classes.rb, line 1551
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 1556
def update!(**args)
  @alt_text = args[:alt_text] if args.key?(:alt_text)
  @image_url = args[:image_url] if args.key?(:image_url)
  @on_click = args[:on_click] if args.key?(:on_click)
end