Class: Google::Apis::ChatV1::CardHeader
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::CardHeader
- Defined in:
- generated/google/apis/chat_v1/classes.rb,
generated/google/apis/chat_v1/representations.rb,
generated/google/apis/chat_v1/representations.rb
Instance Attribute Summary collapse
-
#image_style ⇒ String
The image's type (e.g. square border or circular border).
-
#image_url ⇒ String
The URL of the image in the card header.
-
#subtitle ⇒ String
The subtitle of the card header.
-
#title ⇒ String
The title must be specified.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CardHeader
constructor
A new instance of CardHeader.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ CardHeader
Returns a new instance of CardHeader
254 255 256 |
# File 'generated/google/apis/chat_v1/classes.rb', line 254 def initialize(**args) update!(**args) end |
Instance Attribute Details
#image_style ⇒ String
The image's type (e.g. square border or circular border).
Corresponds to the JSON property imageStyle
235 236 237 |
# File 'generated/google/apis/chat_v1/classes.rb', line 235 def image_style @image_style end |
#image_url ⇒ String
The URL of the image in the card header.
Corresponds to the JSON property imageUrl
240 241 242 |
# File 'generated/google/apis/chat_v1/classes.rb', line 240 def image_url @image_url end |
#subtitle ⇒ String
The subtitle of the card header.
Corresponds to the JSON property subtitle
245 246 247 |
# File 'generated/google/apis/chat_v1/classes.rb', line 245 def subtitle @subtitle end |
#title ⇒ String
The title must be specified. The header has a fixed height: if both a
title and subtitle is specified, each will take up 1 line. If only the
title is specified, it will take up both lines.
Corresponds to the JSON property title
252 253 254 |
# File 'generated/google/apis/chat_v1/classes.rb', line 252 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
259 260 261 262 263 264 |
# File 'generated/google/apis/chat_v1/classes.rb', line 259 def update!(**args) @image_style = args[:image_style] if args.key?(:image_style) @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 |