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.



1246
1247
1248
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1246

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

Instance Attribute Details

#heightFixnum

Image height in pixels. Corresponds to the JSON property height

Returns:

  • (Fixnum)


1234
1235
1236
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1234

def height
  @height
end

#urlString

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

Returns:

  • (String)


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

def url
  @url
end

#widthFixnum

Image width in pixels. Corresponds to the JSON property width

Returns:

  • (Fixnum)


1244
1245
1246
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1244

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1251
1252
1253
1254
1255
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1251

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