Class: Google::Apis::CloudsearchV1::ImageComponent
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::ImageComponent
- 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
NOTE: Through future refactoring work, this image component will eventually be used in the Image widget, and will likely replace the Icon proto as well.
Instance Attribute Summary collapse
-
#alt_text ⇒ String
Corresponds to the JSON property
altText
. -
#border_style ⇒ Google::Apis::CloudsearchV1::BorderStyle
Represents a complete border style that can be applied to widgets.
-
#crop_style ⇒ Google::Apis::CloudsearchV1::ImageCropStyle
Represents a crop style that can be applied to an image.
-
#image_url ⇒ String
Corresponds to the JSON property
imageUrl
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ImageComponent
constructor
A new instance of ImageComponent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ImageComponent
Returns a new instance of ImageComponent.
11416 11417 11418 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11416 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alt_text ⇒ String
Corresponds to the JSON property altText
11399 11400 11401 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11399 def alt_text @alt_text end |
#border_style ⇒ Google::Apis::CloudsearchV1::BorderStyle
Represents a complete border style that can be applied to widgets.
Corresponds to the JSON property borderStyle
11404 11405 11406 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11404 def border_style @border_style end |
#crop_style ⇒ Google::Apis::CloudsearchV1::ImageCropStyle
Represents a crop style that can be applied to an image.
Corresponds to the JSON property cropStyle
11409 11410 11411 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11409 def crop_style @crop_style end |
#image_url ⇒ String
Corresponds to the JSON property imageUrl
11414 11415 11416 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11414 def image_url @image_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11421 11422 11423 11424 11425 11426 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11421 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_url = args[:image_url] if args.key?(:image_url) end |