Class: Google::Apis::CloudsearchV1::ImageComponent

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

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ImageComponent

Returns a new instance of ImageComponent.



9544
9545
9546
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9544

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

Instance Attribute Details

#alt_textString

Corresponds to the JSON property altText

Returns:

  • (String)


9527
9528
9529
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9527

def alt_text
  @alt_text
end

#border_styleGoogle::Apis::CloudsearchV1::BorderStyle

Represents a complete border style that can be applied to widgets. Corresponds to the JSON property borderStyle



9532
9533
9534
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9532

def border_style
  @border_style
end

#crop_styleGoogle::Apis::CloudsearchV1::ImageCropStyle

Represents a crop style that can be applied to an image. Corresponds to the JSON property cropStyle



9537
9538
9539
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9537

def crop_style
  @crop_style
end

#image_urlString

Corresponds to the JSON property imageUrl

Returns:

  • (String)


9542
9543
9544
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9542

def image_url
  @image_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9549
9550
9551
9552
9553
9554
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9549

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