Class: Google::Apis::CloudsearchV1::Image
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::Image
- 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
Instance Attribute Summary collapse
-
#alt_text ⇒ String
The alternative text of this image which will be used for accessibility.
-
#aspect_ratio ⇒ Float
The aspect ratio of this image (width/height).
-
#image_url ⇒ String
Image url specified by developers.
-
#on_click ⇒ Google::Apis::CloudsearchV1::OnClick
Corresponds to the JSON property
onClick.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Image
constructor
A new instance of Image.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Image
Returns a new instance of Image.
10051 10052 10053 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10051 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alt_text ⇒ String
The alternative text of this image which will be used for accessibility.
Corresponds to the JSON property altText
10033 10034 10035 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10033 def alt_text @alt_text end |
#aspect_ratio ⇒ Float
The aspect ratio of this image (width/height).
Corresponds to the JSON property aspectRatio
10038 10039 10040 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10038 def aspect_ratio @aspect_ratio end |
#image_url ⇒ String
Image url specified by developers. Server side, we will wrap with FIFE so
client apps can configure size/cropping/etc.
Corresponds to the JSON property imageUrl
10044 10045 10046 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10044 def image_url @image_url end |
#on_click ⇒ Google::Apis::CloudsearchV1::OnClick
Corresponds to the JSON property onClick
10049 10050 10051 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10049 def on_click @on_click end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10056 10057 10058 10059 10060 10061 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10056 def update!(**args) @alt_text = args[:alt_text] if args.key?(:alt_text) @aspect_ratio = args[:aspect_ratio] if args.key?(:aspect_ratio) @image_url = args[:image_url] if args.key?(:image_url) @on_click = args[:on_click] if args.key?(:on_click) end |