class Google::Apis::CustomsearchV1::Promotion::Image
Image
belonging to a promotion.
Attributes
height[RW]
Image
height in pixels. Corresponds to the JSON property `height` @return [Fixnum]
source[RW]
URL of the image for this promotion link. Corresponds to the JSON property `source` @return [String]
width[RW]
Image
width in pixels. Corresponds to the JSON property `width` @return [Fixnum]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/customsearch_v1/classes.rb, line 131 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/customsearch_v1/classes.rb, line 136 def update!(**args) @height = args[:height] if args.key?(:height) @source = args[:source] if args.key?(:source) @width = args[:width] if args.key?(:width) end