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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Image

Returns a new instance of Image



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

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

Instance Attribute Details

#heightFixnum

Corresponds to the JSON property height

Returns:

  • (Fixnum)


692
693
694
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 692

def height
  @height
end

#urlString

Corresponds to the JSON property url

Returns:

  • (String)


697
698
699
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 697

def url
  @url
end

#widthFixnum

Corresponds to the JSON property width

Returns:

  • (Fixnum)


702
703
704
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 702

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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