Class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1Image

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/recommendationengine_v1beta1/classes.rb,
generated/google/apis/recommendationengine_v1beta1/representations.rb,
generated/google/apis/recommendationengine_v1beta1/representations.rb

Overview

Catalog item thumbnail/detail image.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecommendationengineV1beta1Image

Returns a new instance of GoogleCloudRecommendationengineV1beta1Image.



604
605
606
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 604

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

Instance Attribute Details

#heightFixnum

Optional. Height of the image in number of pixels. Corresponds to the JSON property height

Returns:

  • (Fixnum)


592
593
594
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 592

def height
  @height
end

#uriString

Required. URL of the image with a length limit of 5 KiB. Corresponds to the JSON property uri

Returns:

  • (String)


597
598
599
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 597

def uri
  @uri
end

#widthFixnum

Optional. Width of the image in number of pixels. Corresponds to the JSON property width

Returns:

  • (Fixnum)


602
603
604
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 602

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



609
610
611
612
613
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 609

def update!(**args)
  @height = args[:height] if args.key?(:height)
  @uri = args[:uri] if args.key?(:uri)
  @width = args[:width] if args.key?(:width)
end