Class: Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::Image

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/adexchangebuyer_v1_3/classes.rb,
generated/google/apis/adexchangebuyer_v1_3/representations.rb,
generated/google/apis/adexchangebuyer_v1_3/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.



717
718
719
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 717

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

Instance Attribute Details

#heightFixnum

Corresponds to the JSON property height

Returns:

  • (Fixnum)


705
706
707
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 705

def height
  @height
end

#urlString

Corresponds to the JSON property url

Returns:

  • (String)


710
711
712
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 710

def url
  @url
end

#widthFixnum

Corresponds to the JSON property width

Returns:

  • (Fixnum)


715
716
717
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 715

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



722
723
724
725
726
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 722

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