Class: Google::Apis::ChatV1::GoogleAppsCardV1Image
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::GoogleAppsCardV1Image
- 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
An image that is specified by a URL and can have an onClick action.
Instance Attribute Summary collapse
-
#alt_text ⇒ String
The alternative text of this image, used for accessibility.
-
#image_url ⇒ String
An image URL.
-
#on_click ⇒ Google::Apis::ChatV1::GoogleAppsCardV1OnClick
Represents the response to an
onClickevent.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsCardV1Image
constructor
A new instance of GoogleAppsCardV1Image.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsCardV1Image
Returns a new instance of GoogleAppsCardV1Image.
1646 1647 1648 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1646 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alt_text ⇒ String
The alternative text of this image, used for accessibility.
Corresponds to the JSON property altText
1634 1635 1636 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1634 def alt_text @alt_text end |
#image_url ⇒ String
An image URL.
Corresponds to the JSON property imageUrl
1639 1640 1641 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1639 def image_url @image_url end |
#on_click ⇒ Google::Apis::ChatV1::GoogleAppsCardV1OnClick
Represents the response to an onClick event.
Corresponds to the JSON property onClick
1644 1645 1646 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1644 def on_click @on_click end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1651 1652 1653 1654 1655 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1651 def update!(**args) @alt_text = args[:alt_text] if args.key?(:alt_text) @image_url = args[:image_url] if args.key?(:image_url) @on_click = args[:on_click] if args.key?(:on_click) end |