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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/recommendationengine_v1beta1/classes.rb,
lib/google/apis/recommendationengine_v1beta1/representations.rb,
lib/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.



605
606
607
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 605

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)


593
594
595
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 593

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)


598
599
600
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 598

def uri
  @uri
end

#widthFixnum

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

Returns:

  • (Fixnum)


603
604
605
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 603

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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