Class: Google::Apis::AdexchangebuyerV1_4::Creative::NativeAd::Logo

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 smaller image, for the advertiser logo.

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) ⇒ Logo

Returns a new instance of Logo.



966
967
968
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 966

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

Instance Attribute Details

#heightFixnum

Corresponds to the JSON property height

Returns:

  • (Fixnum)


954
955
956
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 954

def height
  @height
end

#urlString

Corresponds to the JSON property url

Returns:

  • (String)


959
960
961
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 959

def url
  @url
end

#widthFixnum

Corresponds to the JSON property width

Returns:

  • (Fixnum)


964
965
966
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 964

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



971
972
973
974
975
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 971

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