Class: Google::Apis::ChatV1::GoogleAppsCardV1ImageComponent
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::GoogleAppsCardV1ImageComponent
- 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
Instance Attribute Summary collapse
-
#alt_text ⇒ String
The accessibility label for the image.
-
#border_style ⇒ Google::Apis::ChatV1::GoogleAppsCardV1BorderStyle
Represents the complete border style applied to widgets.
-
#crop_style ⇒ Google::Apis::ChatV1::GoogleAppsCardV1ImageCropStyle
Represents the crop style applied to an image.
-
#image_uri ⇒ String
The image URL.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsCardV1ImageComponent
constructor
A new instance of GoogleAppsCardV1ImageComponent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsCardV1ImageComponent
Returns a new instance of GoogleAppsCardV1ImageComponent.
1587 1588 1589 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1587 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alt_text ⇒ String
The accessibility label for the image.
Corresponds to the JSON property altText
1570 1571 1572 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1570 def alt_text @alt_text end |
#border_style ⇒ Google::Apis::ChatV1::GoogleAppsCardV1BorderStyle
Represents the complete border style applied to widgets.
Corresponds to the JSON property borderStyle
1575 1576 1577 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1575 def border_style @border_style end |
#crop_style ⇒ Google::Apis::ChatV1::GoogleAppsCardV1ImageCropStyle
Represents the crop style applied to an image.
Corresponds to the JSON property cropStyle
1580 1581 1582 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1580 def crop_style @crop_style end |
#image_uri ⇒ String
The image URL.
Corresponds to the JSON property imageUri
1585 1586 1587 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1585 def image_uri @image_uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1592 1593 1594 1595 1596 1597 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1592 def update!(**args) @alt_text = args[:alt_text] if args.key?(:alt_text) @border_style = args[:border_style] if args.key?(:border_style) @crop_style = args[:crop_style] if args.key?(:crop_style) @image_uri = args[:image_uri] if args.key?(:image_uri) end |