Class: Google::Apis::RealtimebiddingV1::Image
- Inherits:
-
Object
- Object
- Google::Apis::RealtimebiddingV1::Image
- 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
-
#height ⇒ Fixnum
Image height in pixels.
-
#url ⇒ String
The URL of the image.
-
#width ⇒ Fixnum
Image width in pixels.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Image
constructor
A new instance of Image.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Image
Returns a new instance of Image.
1217 1218 1219 |
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1217 def initialize(**args) update!(**args) end |
Instance Attribute Details
#height ⇒ Fixnum
Image height in pixels.
Corresponds to the JSON property height
1205 1206 1207 |
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1205 def height @height end |
#url ⇒ String
The URL of the image.
Corresponds to the JSON property url
1210 1211 1212 |
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1210 def url @url end |
#width ⇒ Fixnum
Image width in pixels.
Corresponds to the JSON property width
1215 1216 1217 |
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1215 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1222 1223 1224 1225 1226 |
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1222 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 |