Class: Google::Apis::ChatV1::GoogleAppsCardV1CardHeader
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::GoogleAppsCardV1CardHeader
- 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
-
#image_alt_text ⇒ String
The alternative text of this image which is used for accessibility.
-
#image_type ⇒ String
The image's type.
-
#image_url ⇒ String
The URL of the image in the card header.
-
#subtitle ⇒ String
The subtitle of the card header.
-
#title ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsCardV1CardHeader
constructor
A new instance of GoogleAppsCardV1CardHeader.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsCardV1CardHeader
Returns a new instance of GoogleAppsCardV1CardHeader.
1282 1283 1284 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1282 def initialize(**args) update!(**args) end |
Instance Attribute Details
#image_alt_text ⇒ String
The alternative text of this image which is used for accessibility.
Corresponds to the JSON property imageAltText
1258 1259 1260 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1258 def image_alt_text @image_alt_text end |
#image_type ⇒ String
The image's type.
Corresponds to the JSON property imageType
1263 1264 1265 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1263 def image_type @image_type end |
#image_url ⇒ String
The URL of the image in the card header.
Corresponds to the JSON property imageUrl
1268 1269 1270 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1268 def image_url @image_url end |
#subtitle ⇒ String
The subtitle of the card header.
Corresponds to the JSON property subtitle
1273 1274 1275 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1273 def subtitle @subtitle end |
#title ⇒ String
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
1280 1281 1282 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1280 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1287 1288 1289 1290 1291 1292 1293 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1287 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 |