Class: Google::Apis::ChatV1::GoogleAppsCardV1CardHeader

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/chat_v1/classes.rb,
lib/google/apis/chat_v1/representations.rb,
lib/google/apis/chat_v1/representations.rb

Overview

Represents a card header.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsCardV1CardHeader

Returns a new instance of GoogleAppsCardV1CardHeader.



1288
1289
1290
# File 'lib/google/apis/chat_v1/classes.rb', line 1288

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#image_alt_textString

The alternative text of this image which is used for accessibility. Corresponds to the JSON property imageAltText

Returns:

  • (String)


1264
1265
1266
# File 'lib/google/apis/chat_v1/classes.rb', line 1264

def image_alt_text
  @image_alt_text
end

#image_typeString

The image's type. Corresponds to the JSON property imageType

Returns:

  • (String)


1269
1270
1271
# File 'lib/google/apis/chat_v1/classes.rb', line 1269

def image_type
  @image_type
end

#image_urlString

The URL of the image in the card header. Corresponds to the JSON property imageUrl

Returns:

  • (String)


1274
1275
1276
# File 'lib/google/apis/chat_v1/classes.rb', line 1274

def image_url
  @image_url
end

#subtitleString

The subtitle of the card header. Corresponds to the JSON property subtitle

Returns:

  • (String)


1279
1280
1281
# File 'lib/google/apis/chat_v1/classes.rb', line 1279

def subtitle
  @subtitle
end

#titleString

Required. The title of the card header. 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

Returns:

  • (String)


1286
1287
1288
# File 'lib/google/apis/chat_v1/classes.rb', line 1286

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1293
1294
1295
1296
1297
1298
1299
# File 'lib/google/apis/chat_v1/classes.rb', line 1293

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