Class: Google::Apis::Adexchangebuyer2V2beta1::Image

Inherits:
Object
  • Object
show all
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

An image resource. You may provide a larger image than was requested, so long as the aspect ratio is preserved.

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



316
317
318
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 316

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

Instance Attribute Details

#heightFixnum

Image height in pixels. Corresponds to the JSON property height

Returns:

  • (Fixnum)


314
315
316
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 314

def height
  @height
end

#urlString

The URL of the image. Corresponds to the JSON property url

Returns:

  • (String)


309
310
311
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 309

def url
  @url
end

#widthFixnum

Image width in pixels. Corresponds to the JSON property width

Returns:

  • (Fixnum)


304
305
306
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 304

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



321
322
323
324
325
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 321

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