Class: Google::Apis::CloudsearchV1::AppsDynamiteStorageImage

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppsDynamiteStorageImage

Returns a new instance of AppsDynamiteStorageImage.



3611
3612
3613
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3611

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)


3599
3600
3601
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3599

def alt_text
  @alt_text
end

#image_urlString

An image URL. Corresponds to the JSON property imageUrl

Returns:

  • (String)


3604
3605
3606
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3604

def image_url
  @image_url
end

#on_clickGoogle::Apis::CloudsearchV1::AppsDynamiteStorageOnClick

Corresponds to the JSON property onClick



3609
3610
3611
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3609

def on_click
  @on_click
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3616
3617
3618
3619
3620
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3616

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