Class: Google::Apis::CloudsearchV1::AppsDynamiteStorageImageComponent

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppsDynamiteStorageImageComponent

Returns a new instance of AppsDynamiteStorageImageComponent.



3368
3369
3370
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3368

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

Instance Attribute Details

#alt_textString

The accessibility label for the image. Corresponds to the JSON property altText

Returns:

  • (String)


3351
3352
3353
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3351

def alt_text
  @alt_text
end

#border_styleGoogle::Apis::CloudsearchV1::AppsDynamiteStorageBorderStyle

Represents the complete border style applied to widgets. Corresponds to the JSON property borderStyle



3356
3357
3358
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3356

def border_style
  @border_style
end

#crop_styleGoogle::Apis::CloudsearchV1::AppsDynamiteStorageImageCropStyle

Represents the crop style applied to an image. Corresponds to the JSON property cropStyle



3361
3362
3363
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3361

def crop_style
  @crop_style
end

#image_uriString

The image URL. Corresponds to the JSON property imageUri

Returns:

  • (String)


3366
3367
3368
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3366

def image_uri
  @image_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3373
3374
3375
3376
3377
3378
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3373

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_uri = args[:image_uri] if args.key?(:image_uri)
end