Class: Google::Apis::DisplayvideoV1::Dimensions

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

Overview

Dimensions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Dimensions

Returns a new instance of Dimensions.



3586
3587
3588
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 3586

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

Instance Attribute Details

#height_pixelsFixnum

The height in pixels. Corresponds to the JSON property heightPixels

Returns:

  • (Fixnum)


3579
3580
3581
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 3579

def height_pixels
  @height_pixels
end

#width_pixelsFixnum

The width in pixels. Corresponds to the JSON property widthPixels

Returns:

  • (Fixnum)


3584
3585
3586
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 3584

def width_pixels
  @width_pixels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3591
3592
3593
3594
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 3591

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