Class: Google::Apis::ChatV1::GoogleAppsCardV1Image

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

An image that is specified by a URL and can have an onClick action.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsCardV1Image

Returns a new instance of GoogleAppsCardV1Image.



1552
1553
1554
# File 'lib/google/apis/chat_v1/classes.rb', line 1552

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

Instance Attribute Details

#alt_textString

The alternative text of this image, used for accessibility. Corresponds to the JSON property altText

Returns:

  • (String)


1540
1541
1542
# File 'lib/google/apis/chat_v1/classes.rb', line 1540

def alt_text
  @alt_text
end

#image_urlString

An image URL. Corresponds to the JSON property imageUrl

Returns:

  • (String)


1545
1546
1547
# File 'lib/google/apis/chat_v1/classes.rb', line 1545

def image_url
  @image_url
end

#on_clickGoogle::Apis::ChatV1::GoogleAppsCardV1OnClick

Corresponds to the JSON property onClick



1550
1551
1552
# File 'lib/google/apis/chat_v1/classes.rb', line 1550

def on_click
  @on_click
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1557
1558
1559
1560
1561
# File 'lib/google/apis/chat_v1/classes.rb', line 1557

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