Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonImageDimension
- Inherits:
-
Object
- Object
- Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonImageDimension
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/searchads360_v0/classes.rb,
lib/google/apis/searchads360_v0/representations.rb,
lib/google/apis/searchads360_v0/representations.rb
Overview
Metadata for an image at a certain size, either original or resized.
Instance Attribute Summary collapse
-
#height_pixels ⇒ Fixnum
Height of the image.
-
#url ⇒ String
A URL that returns the image with this height and width.
-
#width_pixels ⇒ Fixnum
Width of the image.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsSearchads360V0CommonImageDimension
constructor
A new instance of GoogleAdsSearchads360V0CommonImageDimension.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAdsSearchads360V0CommonImageDimension
Returns a new instance of GoogleAdsSearchads360V0CommonImageDimension.
366 367 368 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 366 def initialize(**args) update!(**args) end |
Instance Attribute Details
#height_pixels ⇒ Fixnum
Height of the image.
Corresponds to the JSON property heightPixels
354 355 356 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 354 def height_pixels @height_pixels end |
#url ⇒ String
A URL that returns the image with this height and width.
Corresponds to the JSON property url
359 360 361 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 359 def url @url end |
#width_pixels ⇒ Fixnum
Width of the image.
Corresponds to the JSON property widthPixels
364 365 366 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 364 def width_pixels @width_pixels end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
371 372 373 374 375 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 371 def update!(**args) @height_pixels = args[:height_pixels] if args.key?(:height_pixels) @url = args[:url] if args.key?(:url) @width_pixels = args[:width_pixels] if args.key?(:width_pixels) end |