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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#alt_text
def alt_text() -> ::String
- (::String) — The alternative text of this image that's used for accessibility.
#alt_text=
def alt_text=(value) -> ::String
- value (::String) — The alternative text of this image that's used for accessibility.
- (::String) — The alternative text of this image that's used for accessibility.
#image_url
def image_url() -> ::String
-
(::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
-
value (::String) — The HTTPS URL that hosts the image.
For example:
https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png
-
(::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
- (::Google::Apps::Card::V1::OnClick) — When a user clicks the image, the click triggers this action.
#on_click=
def on_click=(value) -> ::Google::Apps::Card::V1::OnClick
- value (::Google::Apps::Card::V1::OnClick) — When a user clicks the image, the click triggers this action.
- (::Google::Apps::Card::V1::OnClick) — When a user clicks the image, the click triggers this action.