Class: Google::Apis::DisplayvideoV2::Dimensions

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Dimensions

Returns a new instance of Dimensions.



4715
4716
4717
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4715

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

Instance Attribute Details

#height_pixelsFixnum

The height in pixels. Corresponds to the JSON property heightPixels

Returns:

  • (Fixnum)


4708
4709
4710
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4708

def height_pixels
  @height_pixels
end

#width_pixelsFixnum

The width in pixels. Corresponds to the JSON property widthPixels

Returns:

  • (Fixnum)


4713
4714
4715
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4713

def width_pixels
  @width_pixels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4720
4721
4722
4723
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 4720

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