Class: Google::Apis::DisplayvideoV4::Dimensions
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV4::Dimensions
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/displayvideo_v4/classes.rb,
lib/google/apis/displayvideo_v4/representations.rb,
lib/google/apis/displayvideo_v4/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.
7051 7052 7053 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 7051 def initialize(**args) update!(**args) end |
Instance Attribute Details
#height_pixels ⇒ Fixnum
The height in pixels.
Corresponds to the JSON property heightPixels
7044 7045 7046 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 7044 def height_pixels @height_pixels end |
#width_pixels ⇒ Fixnum
The width in pixels.
Corresponds to the JSON property widthPixels
7049 7050 7051 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 7049 def width_pixels @width_pixels end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7056 7057 7058 7059 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 7056 def update!(**args) @height_pixels = args[:height_pixels] if args.key?(:height_pixels) @width_pixels = args[:width_pixels] if args.key?(:width_pixels) end |