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. For an example in Google Chat apps, see Add a header. Google Workspace Add-ons and Chat apps:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsCardV1CardHeader

Returns a new instance of GoogleAppsCardV1CardHeader.



1770
1771
1772
# File 'lib/google/apis/chat_v1/classes.rb', line 1770

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

Instance Attribute Details

#image_alt_textString

The alternative text of this image that's used for accessibility. Corresponds to the JSON property imageAltText

Returns:

  • (String)


1744
1745
1746
# File 'lib/google/apis/chat_v1/classes.rb', line 1744

def image_alt_text
  @image_alt_text
end

#image_typeString

The shape used to crop the image. Google Workspace Add-ons and Chat apps: Corresponds to the JSON property imageType

Returns:

  • (String)


1750
1751
1752
# File 'lib/google/apis/chat_v1/classes.rb', line 1750

def image_type
  @image_type
end

#image_urlString

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

Returns:

  • (String)


1755
1756
1757
# File 'lib/google/apis/chat_v1/classes.rb', line 1755

def image_url
  @image_url
end

#subtitleString

The subtitle of the card header. If specified, appears on its own line below the title. Corresponds to the JSON property subtitle

Returns:

  • (String)


1761
1762
1763
# File 'lib/google/apis/chat_v1/classes.rb', line 1761

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)


1768
1769
1770
# File 'lib/google/apis/chat_v1/classes.rb', line 1768

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1775
1776
1777
1778
1779
1780
1781
# File 'lib/google/apis/chat_v1/classes.rb', line 1775

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