Google Chat V1 API - Class Google::Apps::Card::V1::Image (v0.15.0)

Reference documentation and code samples for the Google Chat V1 API class Google::Apps::Card::V1::Image.

An image that is specified by a URL and can have an onClick action. For an example, see Add an image .

Google Workspace Add-ons and Chat apps :

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#alt_text

  def 
  
 alt_text 
 () 
  
 - 
>  
 :: 
 String 
 
Returns
  • (::String) — The alternative text of this image that's used for accessibility.

#alt_text=

  def 
  
 alt_text= 
 ( 
 value 
 ) 
  
 - 
>  
 :: 
 String 
 
Parameter
  • value(::String) — The alternative text of this image that's used for accessibility.
Returns
  • (::String) — The alternative text of this image that's used for accessibility.

#image_url

  def 
  
 image_url 
 () 
  
 - 
>  
 :: 
 String 
 
Returns
  • (::String) — The HTTPS URL that hosts the image.

    For example:

    https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png

#image_url=

  def 
  
 image_url= 
 ( 
 value 
 ) 
  
 - 
>  
 :: 
 String 
 
Parameter
  • value(::String) — The HTTPS URL that hosts the image.

    For example:

    https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png

Returns
  • (::String) — The HTTPS URL that hosts the image.

    For example:

    https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png

#on_click

  def 
  
 on_click 
 () 
  
 - 
>  
 :: 
 Google 
 :: 
 Apps 
 :: 
 Card 
 :: 
 V1 
 :: 
 OnClick 
 
Returns

#on_click=

  def 
  
 on_click= 
 ( 
 value 
 ) 
  
 - 
>  
 :: 
 Google 
 :: 
 Apps 
 :: 
 Card 
 :: 
 V1 
 :: 
 OnClick 
 
Parameter
Returns
Create a Mobile Website
View Site in Mobile | Classic
Share by: