Class: Google::Apis::CloudsearchV1::AppsDynamiteSharedImage
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::AppsDynamiteSharedImage
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_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::CloudsearchV1::AppsDynamiteSharedOnClick
Corresponds to the JSON property
onClick.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AppsDynamiteSharedImage
constructor
A new instance of AppsDynamiteSharedImage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AppsDynamiteSharedImage
Returns a new instance of AppsDynamiteSharedImage.
2524 2525 2526 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2524 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
2512 2513 2514 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2512 def alt_text @alt_text end |
#image_url ⇒ String
An image URL.
Corresponds to the JSON property imageUrl
2517 2518 2519 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2517 def image_url @image_url end |
#on_click ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedOnClick
Corresponds to the JSON property onClick
2522 2523 2524 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2522 def on_click @on_click end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2529 2530 2531 2532 2533 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2529 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 |