Class: Google::Apis::DisplayvideoV4::Dimensions

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Dimensions

Returns a new instance of Dimensions.



7199
7200
7201
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 7199

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

Instance Attribute Details

#height_pixelsFixnum

The height in pixels. Corresponds to the JSON property heightPixels

Returns:

  • (Fixnum)


7192
7193
7194
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 7192

def height_pixels
  @height_pixels
end

#width_pixelsFixnum

The width in pixels. Corresponds to the JSON property widthPixels

Returns:

  • (Fixnum)


7197
7198
7199
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 7197

def width_pixels
  @width_pixels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7204
7205
7206
7207
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 7204

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