Class: Google::Apis::Adexchangebuyer2V2beta1::Size
- Inherits:
-
Object
- Object
- Google::Apis::Adexchangebuyer2V2beta1::Size
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/adexchangebuyer2_v2beta1/classes.rb,
generated/google/apis/adexchangebuyer2_v2beta1/representations.rb,
generated/google/apis/adexchangebuyer2_v2beta1/representations.rb
Overview
Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
Instance Attribute Summary collapse
-
#height ⇒ Fixnum
The height of the creative.
-
#width ⇒ Fixnum
The width of the creative Corresponds to the JSON property
width
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Size
constructor
A new instance of Size.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Size
Returns a new instance of Size.
3842 3843 3844 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3842 def initialize(**args) update!(**args) end |
Instance Attribute Details
#height ⇒ Fixnum
The height of the creative.
Corresponds to the JSON property height
3835 3836 3837 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3835 def height @height end |
#width ⇒ Fixnum
The width of the creative
Corresponds to the JSON property width
3840 3841 3842 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3840 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3847 3848 3849 3850 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3847 def update!(**args) @height = args[:height] if args.key?(:height) @width = args[:width] if args.key?(:width) end |