Class: Google::Apis::ChatV1::CardHeader
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::CardHeader
- 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
Instance Attribute Summary collapse
-
#image_style ⇒ String
The image's type (for example, 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.
Constructor Details
#initialize(**args) ⇒ CardHeader
Returns a new instance of CardHeader.
473 474 475 |
# File 'lib/google/apis/chat_v1/classes.rb', line 473 def initialize(**args) update!(**args) end |
Instance Attribute Details
#image_style ⇒ String
The image's type (for example, square border or circular border).
Corresponds to the JSON property imageStyle
454 455 456 |
# File 'lib/google/apis/chat_v1/classes.rb', line 454 def image_style @image_style end |
#image_url ⇒ String
The URL of the image in the card header.
Corresponds to the JSON property imageUrl
459 460 461 |
# File 'lib/google/apis/chat_v1/classes.rb', line 459 def image_url @image_url end |
#subtitle ⇒ String
The subtitle of the card header.
Corresponds to the JSON property subtitle
464 465 466 |
# File 'lib/google/apis/chat_v1/classes.rb', line 464 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 takes up one line. If only the title is
specified, it takes up both lines.
Corresponds to the JSON property title
471 472 473 |
# File 'lib/google/apis/chat_v1/classes.rb', line 471 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
478 479 480 481 482 483 |
# File 'lib/google/apis/chat_v1/classes.rb', line 478 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 |