Class: Google::Apis::DisplayvideoV1::Dimensions
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV1::Dimensions
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/displayvideo_v1/classes.rb,
generated/google/apis/displayvideo_v1/representations.rb,
generated/google/apis/displayvideo_v1/representations.rb
Overview
Dimensions.
Instance Attribute Summary collapse
-
#height_pixels ⇒ Fixnum
The height in pixels.
-
#width_pixels ⇒ Fixnum
The width in pixels.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Dimensions
constructor
A new instance of Dimensions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Dimensions
Returns a new instance of Dimensions.
3460 3461 3462 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 3460 def initialize(**args) update!(**args) end |
Instance Attribute Details
#height_pixels ⇒ Fixnum
The height in pixels.
Corresponds to the JSON property heightPixels
3453 3454 3455 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 3453 def height_pixels @height_pixels end |
#width_pixels ⇒ Fixnum
The width in pixels.
Corresponds to the JSON property widthPixels
3458 3459 3460 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 3458 def width_pixels @width_pixels end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3465 3466 3467 3468 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 3465 def update!(**args) @height_pixels = args[:height_pixels] if args.key?(:height_pixels) @width_pixels = args[:width_pixels] if args.key?(:width_pixels) end |