Class: Google::Apis::ChatV1::GoogleAppsCardV1ImageComponent

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

Represents an image.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsCardV1ImageComponent

Returns a new instance of GoogleAppsCardV1ImageComponent.



1683
1684
1685
# File 'lib/google/apis/chat_v1/classes.rb', line 1683

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#alt_textString

The accessibility label for the image. Corresponds to the JSON property altText

Returns:

  • (String)


1666
1667
1668
# File 'lib/google/apis/chat_v1/classes.rb', line 1666

def alt_text
  @alt_text
end

#border_styleGoogle::Apis::ChatV1::GoogleAppsCardV1BorderStyle

Represents the complete border style applied to widgets. Corresponds to the JSON property borderStyle



1671
1672
1673
# File 'lib/google/apis/chat_v1/classes.rb', line 1671

def border_style
  @border_style
end

#crop_styleGoogle::Apis::ChatV1::GoogleAppsCardV1ImageCropStyle

Represents the crop style applied to an image. Corresponds to the JSON property cropStyle



1676
1677
1678
# File 'lib/google/apis/chat_v1/classes.rb', line 1676

def crop_style
  @crop_style
end

#image_uriString

The image URL. Corresponds to the JSON property imageUri

Returns:

  • (String)


1681
1682
1683
# File 'lib/google/apis/chat_v1/classes.rb', line 1681

def image_uri
  @image_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1688
1689
1690
1691
1692
1693
# File 'lib/google/apis/chat_v1/classes.rb', line 1688

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