class Google::Apis::ChatV1::GoogleAppsCardV1CardHeader

Attributes

image_alt_text[RW]

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

image_type[RW]

The image's type. Corresponds to the JSON property `imageType` @return [String]

image_url[RW]

The URL of the image in the card header. Corresponds to the JSON property `imageUrl` @return [String]

subtitle[RW]

The subtitle of the card header. Corresponds to the JSON property `subtitle` @return [String]

title[RW]

The title of the card header. The title must be specified. The header has a fixed height: if both a title and subtitle are specified, each takes up one line. If only the title is specified, it takes up both lines. Corresponds to the JSON property `title` @return [String]

Public Class Methods

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