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.



1135
1136
1137
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1135

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

Instance Attribute Details

#heightFixnum

Image height in pixels. Corresponds to the JSON property height

Returns:

  • (Fixnum)


1123
1124
1125
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1123

def height
  @height
end

#urlString

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

Returns:

  • (String)


1128
1129
1130
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1128

def url
  @url
end

#widthFixnum

Image width in pixels. Corresponds to the JSON property width

Returns:

  • (Fixnum)


1133
1134
1135
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1133

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1140
1141
1142
1143
1144
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1140

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