Class: Google::Apis::DisplayvideoV3::Dimensions

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/displayvideo_v3/classes.rb,
lib/google/apis/displayvideo_v3/representations.rb,
lib/google/apis/displayvideo_v3/representations.rb

Overview

Dimensions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Dimensions

Returns a new instance of Dimensions.



5343
5344
5345
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 5343

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#height_pixelsFixnum

The height in pixels. Corresponds to the JSON property heightPixels

Returns:

  • (Fixnum)


5336
5337
5338
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 5336

def height_pixels
  @height_pixels
end

#width_pixelsFixnum

The width in pixels. Corresponds to the JSON property widthPixels

Returns:

  • (Fixnum)


5341
5342
5343
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 5341

def width_pixels
  @width_pixels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5348
5349
5350
5351
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 5348

def update!(**args)
  @height_pixels = args[:height_pixels] if args.key?(:height_pixels)
  @width_pixels = args[:width_pixels] if args.key?(:width_pixels)
end