Class: Google::Apps::Chat::V1::WidgetMarkup::Image
- Inherits:
-
Object
- Object
- Google::Apps::Chat::V1::WidgetMarkup::Image
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/chat/v1/widgets.rb
Overview
An image that's specified by a URL and can have an onclick action.
Instance Attribute Summary collapse
-
#aspect_ratio ⇒ ::Float
The aspect ratio of this image (width and height).
-
#image_url ⇒ ::String
The URL of the image.
-
#on_click ⇒ ::Google::Apps::Chat::V1::WidgetMarkup::OnClick
The
onclickaction.
Instance Attribute Details
#aspect_ratio ⇒ ::Float
Returns The aspect ratio of this image (width and height). This field lets you reserve the right height for the image while waiting for it to load. It's not meant to override the built-in aspect ratio of the image. If unset, the server fills it by prefetching the image.
162 163 164 165 |
# File 'proto_docs/google/chat/v1/widgets.rb', line 162 class Image include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#image_url ⇒ ::String
Returns The URL of the image.
162 163 164 165 |
# File 'proto_docs/google/chat/v1/widgets.rb', line 162 class Image include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#on_click ⇒ ::Google::Apps::Chat::V1::WidgetMarkup::OnClick
Returns The onclick action.
162 163 164 165 |
# File 'proto_docs/google/chat/v1/widgets.rb', line 162 class Image include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |