Class: Google::Apis::DisplayvideoV2::Dimensions
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV2::Dimensions
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/displayvideo_v2/classes.rb,
lib/google/apis/displayvideo_v2/representations.rb,
lib/google/apis/displayvideo_v2/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.
4454 4455 4456 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4454 def initialize(**args) update!(**args) end |
Instance Attribute Details
#height_pixels ⇒ Fixnum
The height in pixels.
Corresponds to the JSON property heightPixels
4447 4448 4449 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4447 def height_pixels @height_pixels end |
#width_pixels ⇒ Fixnum
The width in pixels.
Corresponds to the JSON property widthPixels
4452 4453 4454 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4452 def width_pixels @width_pixels end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4459 4460 4461 4462 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4459 def update!(**args) @height_pixels = args[:height_pixels] if args.key?(:height_pixels) @width_pixels = args[:width_pixels] if args.key?(:width_pixels) end |