Class: Google::Apps::Chat::V1::WidgetMarkup::Image

Inherits:
Object
  • Object
show all
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

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.

Returns:

  • (::Float)

    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.



148
149
150
151
# File 'proto_docs/google/chat/v1/widgets.rb', line 148

class Image
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#image_url::String

Returns The URL of the image.

Returns:

  • (::String)

    The URL of the image.



148
149
150
151
# File 'proto_docs/google/chat/v1/widgets.rb', line 148

class Image
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#on_click::Google::Apps::Chat::V1::WidgetMarkup::OnClick

Returns The onclick action.

Returns:



148
149
150
151
# File 'proto_docs/google/chat/v1/widgets.rb', line 148

class Image
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end