Class: Google::Apis::RealtimebiddingV1::Image

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

Constructor Details

#initialize(**args) ⇒ Image

Returns a new instance of Image.



1232
1233
1234
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1232

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

Instance Attribute Details

#heightFixnum

Image height in pixels. Corresponds to the JSON property height

Returns:

  • (Fixnum)


1220
1221
1222
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1220

def height
  @height
end

#urlString

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

Returns:

  • (String)


1225
1226
1227
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1225

def url
  @url
end

#widthFixnum

Image width in pixels. Corresponds to the JSON property width

Returns:

  • (Fixnum)


1230
1231
1232
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1230

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1237
1238
1239
1240
1241
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1237

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