Class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1Image
- Inherits:
-
Object
- Object
- Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1Image
- 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
-
#height ⇒ Fixnum
Optional.
-
#uri ⇒ String
Required.
-
#width ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecommendationengineV1beta1Image
constructor
A new instance of GoogleCloudRecommendationengineV1beta1Image.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#height ⇒ Fixnum
Optional. Height of the image in number of pixels.
Corresponds to the JSON property height
593 594 595 |
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 593 def height @height end |
#uri ⇒ String
Required. URL of the image with a length limit of 5 KiB.
Corresponds to the JSON property uri
598 599 600 |
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 598 def uri @uri end |
#width ⇒ Fixnum
Optional. Width of the image in number of pixels.
Corresponds to the JSON property width
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 |