Class: Google::Apis::AdexchangebuyerV1_4::Creative::NativeAd::Image

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

Overview

A large image.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Image

Returns a new instance of Image.



1024
1025
1026
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1024

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

Instance Attribute Details

#heightFixnum

Corresponds to the JSON property height

Returns:

  • (Fixnum)


1012
1013
1014
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1012

def height
  @height
end

#urlString

Corresponds to the JSON property url

Returns:

  • (String)


1017
1018
1019
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1017

def url
  @url
end

#widthFixnum

Corresponds to the JSON property width

Returns:

  • (Fixnum)


1022
1023
1024
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1022

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1029
1030
1031
1032
1033
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1029

def update!(**args)
  @height = args[:height] if args.key?(:height)
  @url = args[:url] if args.key?(:url)
  @width = args[:width] if args.key?(:width)
end