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

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

Overview

Dimensions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Dimensions

Returns a new instance of Dimensions.



3018
3019
3020
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 3018

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

Instance Attribute Details

#height_pixelsFixnum

The height in pixels. Corresponds to the JSON property heightPixels

Returns:

  • (Fixnum)


3011
3012
3013
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 3011

def height_pixels
  @height_pixels
end

#width_pixelsFixnum

The width in pixels. Corresponds to the JSON property widthPixels

Returns:

  • (Fixnum)


3016
3017
3018
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 3016

def width_pixels
  @width_pixels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3023
3024
3025
3026
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 3023

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